/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Geist Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: #000;
    min-height: 100vh;
    color: #f5f5f5;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    font-weight: 400;
    font-size: 14px;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(189, 195, 199, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(149, 165, 166, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(127, 140, 141, 0.15) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(1deg); }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 4rem;
    color: white;
    position: relative;
    z-index: 10;
    min-height: 200px;
    padding-top: 1rem;
}

/* User Section */
.user-section {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    pointer-events: auto;
    max-width: calc(100vw - 4rem);
    overflow: hidden;
}

/* Responsive design for tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .header {
        min-height: auto;
        padding-top: 1rem;
        margin-bottom: 3rem;
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        gap: 2rem;
    }
    
    .user-section {
        position: static !important;
        top: auto !important;
        right: auto !important;
        width: auto;
        max-width: 500px;
        justify-content: center;
        margin: 0 auto;
        order: 1 !important;
    }
    
    .logo {
        order: 2 !important;
        margin-bottom: 0;
    }
    
    .tagline {
        order: 3 !important;
        margin-top: 0;
    }
}

/* Responsive design for mobile screens */
@media (max-width: 768px) {
    .header {
        min-height: auto;
        padding-top: 0.5rem;
        margin-bottom: 2rem;
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        gap: 1.5rem;
    }
    
    .user-section {
        position: static !important;
        top: auto !important;
        right: auto !important;
        width: calc(100% - 2rem);
        max-width: 400px;
        justify-content: center;
        margin: 0 auto;
        order: 1 !important;
    }
    
    .logo {
        order: 2 !important;
        margin-bottom: 0;
    }
    
    .tagline {
        order: 3 !important;
        margin-top: 0;
    }
    
    .user-section .user-info {
        align-items: center;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 0.5rem;
        margin-bottom: 1.5rem;
        gap: 1rem !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .user-section {
        position: static !important;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        width: calc(100% - 1rem);
        max-width: none;
        margin-bottom: 0.5rem;
        order: 1 !important;
    }
    
    .logo {
        margin-top: 0.5rem;
        order: 2 !important;
    }
    
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        order: 3 !important;
    }
    
    .logout-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .user-info {
        align-items: center;
        text-align: center;
    }
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.user-name {
    font-weight: 600;
    color: #00ff88;
    font-size: 0.875rem;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 8px;
    color: #ff6b6b;
    font-weight: 500;
    cursor: pointer !important;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    font-size: 0.875rem;
    position: relative;
    z-index: 1000;
    pointer-events: auto !important;
    user-select: none;
}

.logout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
    background: rgba(255, 107, 107, 0.15);
}

.logout-btn i {
    font-size: 0.875rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.logo-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.logo-icon .arrow-left {
    color: #ffd700;
    font-size: 1.5rem;
    animation: bounceLeft 2s ease-in-out infinite;
}

.logo-icon .arrow-right {
    color: #00ff88;
    font-size: 1.5rem;
    animation: bounceRight 2s ease-in-out infinite 0.5s;
}

@keyframes bounceLeft {
    0%, 100% { transform: translateX(0) scale(1); }
    50% { transform: translateX(-3px) scale(1.05); }
}

@keyframes bounceRight {
    0%, 100% { transform: translateX(0) scale(1); }
    50% { transform: translateX(3px) scale(1.05); }
}

.logo h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.025em;
    margin: 0;
    padding: 0;
    display: block;
}

.tagline {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.5s both;
    margin: 0;
    padding: 0;
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 5;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: cardSlideIn 0.6s ease-out both;
    transition: all 0.2s ease;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.card-icon.info { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.card-icon.rate { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.card-icon.wallet { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.card-icon.calc { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.card-icon.send { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.card-icon.history { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.025em;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    backdrop-filter: blur(10px);
    font-weight: 400;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #4f8cff !important;
    color: #fff !important;
    border: none !important;
}

.btn-primary:hover {
    background: #357ae8 !important;
}

.btn-success {
    background: #22c55e !important;
    color: #fff !important;
    border: none !important;
}

.btn-success:hover {
    background: #16a34a !important;
}

.btn:active {
    transform: translateY(0);
}

/* Rate Display */
.rate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rate-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.rate-item:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
}

.rate-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.rate-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

/* Swap Calculator */
.swap-calculator {
    text-align: center;
}

.swap-arrow {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 1rem 0;
}

.token-amount {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Transaction History */
.transaction-list {
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.transaction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
}

.transaction-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.transaction-info {
    flex: 1;
    min-width: 0;
    margin-right: 1rem;
}

.transaction-amount {
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.2;
}

.transaction-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.2;
}

.transaction-status {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: fit-content;
}

.transaction-status.completed {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.transaction-status.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.transaction-status.failed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* How It Works */
.steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.step:hover {
    background: rgba(255, 255, 255, 0.08);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
    font-weight: 400;
    color: #ffffff;
    font-size: 0.875rem;
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-icon {
    font-size: 3rem;
    color: #22c55e;
    margin-bottom: 1rem;
}

.error-icon {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-size: 0.875rem;
}

/* No Transactions State */
.no-transactions {
    text-align: center;
    padding: 2rem 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.no-transactions i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-transactions p {
    font-size: 0.875rem;
    font-weight: 400;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #18181b;
}

::-webkit-scrollbar-thumb {
    background: #232323;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Focus States for Accessibility */
.btn:focus,
.form-input:focus {
    outline: 2px solid rgba(255, 255, 255, 0.3);
    outline-offset: 2px;
}

/* Smooth Animations */
* {
    transition: all 0.2s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .rate-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .token-amount {
        font-size: 1.5rem;
        padding: 0.75rem;
    }
}

/* Glass Morphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
} 

.user-info-display {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    color: #00ff88;
    font-weight: 500;
    font-family: 'Geist Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    word-break: break-all;
    backdrop-filter: blur(10px);
    font-size: 0.875rem;
}

.wallet-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.75rem;
    backdrop-filter: blur(10px);
}

.wallet-status i {
    color: #22c55e;
    font-size: 1rem;
}

.wallet-status span {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.875rem;
}

.register-prompt {
    text-align: center;
    padding: 1.5rem 1rem;
}

.register-prompt i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
    display: block;
}

.register-prompt p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.register-prompt .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
} 

/* Send Airtime Section */
.send-airtime {
    padding: 1rem 0;
}

.airtime-number {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.number-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.number-display {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    font-family: 'Geist Mono', 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: rgba(102, 126, 234, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: inline-block;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.btn-copy {
    background: #00ff88;
    color: #1a1a1a;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    transform: translateY(-1px);
    background: #00e67a;
}

.btn-copy:active {
    transform: translateY(0);
}

.airtime-instructions {
    margin-bottom: 1.5rem;
}

.airtime-instructions h4 {
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.airtime-instructions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.airtime-instructions li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

.airtime-instructions li i {
    margin-right: 0.75rem;
    width: 14px;
    color: #4facfe;
    font-size: 0.875rem;
}

.airtime-note {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.airtime-note i {
    color: #fbbf24;
    margin-right: 0.5rem;
    margin-top: 0.125rem;
    font-size: 0.875rem;
}

.airtime-note span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    line-height: 1.4;
} 
 
 
 
 
 
 