/* Reset and Base Styles - TRUE MOBILE FIRST */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6c5ce7;
    --primary-dark: #5649c0;
    --secondary-color: #00cec9;
    --accent-color: #fd79a8;
    --text-color: #ffffff;
    --text-light: #e0e0e0;
    --bg-color: rgba(255, 255, 255, 0.1);
    --bg-light: rgba(255, 255, 255, 0.15);
    --bg-dark: #0a0a15;
    --border-color: rgba(255, 255, 255, 0.2);
    --success-color: #00b894;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --glass-effect: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
}

/* MOBILE FIRST - Base styles for small screens (320px and up) */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    color: var(--text-color);
    background: 
        linear-gradient(rgba(10, 10, 30, 0.92), rgba(10, 10, 30, 0.95)),
        url('crypto1.jpeg') center/cover no-repeat fixed;
    overflow-x: hidden;
    min-height: 100vh;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 12px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header - Mobile First */
.header {
    text-align: center;
    padding: 30px 0 25px;
    flex-shrink: 0;
}

.logo {
    margin-bottom: 20px;
}

.logo img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    object-fit: cover;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    padding: 0 8px;
}

.subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    margin: 0 auto 20px;
    color: var(--text-light);
    line-height: 1.4;
    padding: 0 10px;
}

.get-started-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-top: 15px;
    border: 1px solid var(--glass-border);
    min-width: 180px;
}

.get-started-btn:active {
    transform: scale(0.96);
}

/* Main Content - Mobile First */
.main-content {
    padding: 0 0 30px;
    flex: 1;
}

/* Features Section - Mobile First */
.features {
    margin-bottom: 30px;
}

.features h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-color);
    font-weight: 600;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Updated Feature Cards as Links */
.feature-card {
    display: block;
    background: var(--glass-effect);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: var(--transition);
}

/* Remove default link styles */
.feature-card,
.feature-card:hover,
.feature-card:focus,
.feature-card:visited {
    text-decoration: none;
    color: inherit;
    outline: none;
}

.feature-card:active {
    transform: scale(0.98);
}

.feature-image {
    height: 120px;
    overflow: hidden;
    position: relative;
}

.feature-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4));
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.feature-content {
    padding: 16px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text-color);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Steps Section - Mobile First */
.steps {
    margin-top: 30px;
}

.steps h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-color);
    font-weight: 600;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--glass-effect);
    padding: 16px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-color);
    font-weight: 600;
}

.step-content p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Services Grid Styles - Mobile First */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 0 40px;
}

/* Updated Service Cards as Links */
.service-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--glass-effect);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Remove default link styles and ensure proper link behavior */
.service-card,
.service-card:hover,
.service-card:focus,
.service-card:visited {
    text-decoration: none;
    color: inherit;
    outline: none;
}

.service-card:active {
    transform: scale(0.98);
}

.service-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
}

.service-content h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.3;
}

.service-content p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

/* Footer - Mobile First */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 30px 12px 15px;
    margin-top: 25px;
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto 25px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 12px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-section p {
    color: #b2bec3;
    margin-bottom: 10px;
    line-height: 1.4;
    font-size: 0.85rem;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    object-fit: cover;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 6px;
}

.footer-section ul li a {
    color: #b2bec3;
    text-decoration: none;
    font-size: 0.85rem;
    display: block;
    padding: 2px 0;
}

.social-links {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #b2bec3;
    transition: var(--transition);
}

.social-links a:active {
    background: var(--secondary-color);
    color: var(--bg-dark);
    transform: scale(0.95);
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b2bec3;
    font-size: 0.75rem;
}

/* ========== WALLET CONNECTION PAGE STYLES ========== */

/* Wallet Connection Page Specific Styles */
.wallet-header {
    text-align: center;
    padding: 40px 0 30px;
    flex-shrink: 0;
}

.wallet-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    padding: 0 8px;
}

.wallet-subtitle {
    font-size: 0.95rem;
    font-weight: 300;
    margin: 0 auto 25px;
    color: var(--text-light);
    line-height: 1.4;
    padding: 0 10px;
    max-width: 500px;
}

/* Search and Filter Section */
.wallet-search {
    max-width: 500px;
    margin: 0 auto 30px;
    position: relative;
}

.wallet-search input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    background: var(--glass-effect);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: var(--text-color);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    font-family: inherit;
}

.wallet-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
    background: var(--bg-light);
}

.wallet-search input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.wallet-search::before {
    content: '🔍';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--text-light);
    z-index: 1;
}

/* Enhanced Wallet Grid */
.wallet-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 0 40px;
    flex: 1;
}

.wallet-category {
    background: linear-gradient(145deg, var(--glass-effect), rgba(255, 255, 255, 0.03));
    border-radius: var(--border-radius);
    padding: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.wallet-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.wallet-category:hover::before {
    left: 100%;
}

.wallet-category h2 {
    font-size: 1.3rem;
    margin-bottom: 18px;
    color: var(--secondary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 206, 201, 0.3);
}

.wallet-category h2::before {
    content: '▸';
    color: var(--primary-color);
    font-size: 1.1em;
}

/* Enhanced Wallet List */
.wallet-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wallet-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--glass-effect);
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.wallet-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.wallet-item:active {
    transform: scale(0.98);
}

.wallet-item:hover::before {
    transform: scaleY(1);
}

.wallet-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    transition: var(--transition);
}

.wallet-item:active .wallet-icon {
    transform: scale(0.95);
}

.wallet-info {
    flex: 1;
}

.wallet-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.3;
}

.wallet-info p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

/* Search highlight */
mark {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
}

/* Status indicator */
.wallet-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
    margin-left: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Back button styling */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: var(--shadow);
}

.back-btn:active {
    transform: scale(0.96);
}

/* Enhanced Footer */
.wallet-footer {
    text-align: center;
    margin-top: 40px;
    padding: 25px 20px;
    color: var(--text-light);
    border-top: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.wallet-footer a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.wallet-footer a:active {
    color: var(--primary-color);
}

/* Loading animation for wallet items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for wallet items */
.wallet-item:nth-child(1) { animation-delay: 0.1s; }
.wallet-item:nth-child(2) { animation-delay: 0.2s; }
.wallet-item:nth-child(3) { animation-delay: 0.3s; }
.wallet-item:nth-child(4) { animation-delay: 0.4s; }
.wallet-item:nth-child(5) { animation-delay: 0.5s; }
.wallet-item:nth-child(6) { animation-delay: 0.6s; }

/* No results message styling */
#noResults {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

#noResults p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin: 0;
}

/* Focus styles for accessibility */
.wallet-item:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.wallet-search input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========== WALLET CONNECTION FORM STYLES ========== */

/* Form Page Base Styles */
.form-page-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

.form-container {
    width: 100%;
    max-width: 500px;
}

/* Form Card */
.form-card {
    background: linear-gradient(145deg, var(--glass-effect), rgba(255, 255, 255, 0.05));
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    animation: cardSlideIn 0.5s ease-out;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Wallet Header in Form */
.wallet-form-header {
    text-align: center;
    margin-bottom: 25px;
}

.wallet-form-logo {
    font-size: 4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    margin: 0 auto 15px;
    box-shadow: var(--shadow);
}

.wallet-form-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Error Message */
.error-message {
    background: rgba(253, 121, 168, 0.1);
    border: 1px solid rgba(253, 121, 168, 0.3);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 25px;
    text-align: center;
}

.error-message p {
    color: var(--accent-color);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Form Sections */
.form-section {
    margin-bottom: 25px;
}

.form-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
}

/* Type Options */
.type-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.type-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--glass-effect);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
}

.type-option:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.type-option.selected {
    background: rgba(108, 92, 231, 0.15);
    border-color: var(--primary-color);
}

.type-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.type-option.selected .type-radio {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.type-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    opacity: 0;
    transition: var(--transition);
}

.type-option.selected .type-radio::after {
    opacity: 1;
}

.type-info {
    flex: 1;
}

.type-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-color);
    font-weight: 600;
}

.type-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

/* Form Inputs */
.form-section label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-section textarea {
    width: 100%;
    padding: 15px;
    background: var(--glass-effect);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 120px;
    transition: var(--transition);
}

.form-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
}

.form-section textarea::placeholder {
    color: var(--text-light);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.form-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-connect {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow);
}

.btn-connect:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-close {
    background: var(--glass-effect);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
}

.btn-close:hover {
    background: var(--bg-light);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 30px 20px;
    display: none;
}

.success-message h3 {
    color: var(--success-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.success-message p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Form States */
.form-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ========== PROGRESSIVE ENHANCEMENT ========== */

/* Small Phones (375px and up) */
@media (min-width: 375px) {
    body {
        font-size: 15px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .header {
        padding: 35px 0 30px;
    }
    
    .wallet-header {
        padding: 45px 0 35px;
    }
    
    .logo img {
        width: 80px;
        height: 80px;
    }
    
    .header h1 {
        font-size: 1.7rem;
    }
    
    .wallet-header h1 {
        font-size: 2rem;
    }
    
    .wallet-form-header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .wallet-subtitle {
        font-size: 1rem;
    }
    
    .get-started-btn {
        padding: 14px 28px;
        font-size: 1rem;
        min-width: 200px;
    }
    
    .back-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .feature-image {
        height: 140px;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .service-icon {
        font-size: 2rem;
        width: 55px;
        height: 55px;
    }
    
    .wallet-icon {
        font-size: 2rem;
        width: 55px;
        height: 55px;
    }
    
    .wallet-form-logo {
        font-size: 3.5rem;
        width: 90px;
        height: 90px;
    }
    
    .service-content h3 {
        font-size: 1.2rem;
    }
    
    .wallet-info h3 {
        font-size: 1.2rem;
    }
    
    .service-content p {
        font-size: 0.9rem;
    }
    
    .wallet-info p {
        font-size: 0.9rem;
    }
    
    .wallet-search input {
        padding: 16px 20px 16px 50px;
    }
    
    .form-card {
        padding: 25px;
    }
}

/* Medium Phones (425px and up) */
@media (min-width: 425px) {
    .header {
        padding: 40px 0 35px;
    }
    
    .wallet-header {
        padding: 50px 0 40px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .wallet-header h1 {
        font-size: 2.2rem;
    }
    
    .wallet-form-header h1 {
        font-size: 2rem;
    }
    
    .features h2,
    .steps h2 {
        font-size: 1.5rem;
    }
    
    .wallet-category h2 {
        font-size: 1.4rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .step-content h3 {
        font-size: 1.1rem;
    }
    
    .services-grid {
        gap: 18px;
    }
    
    .wallet-list {
        gap: 14px;
    }
    
    .service-card {
        padding: 22px;
    }
    
    .wallet-item {
        padding: 18px;
    }
}

/* Tablets (768px and up) */
@media (min-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .container {
        padding: 0 24px;
        max-width: 1200px;
    }
    
    .header {
        padding: 70px 0 50px;
    }
    
    .wallet-header {
        padding: 70px 0 50px;
    }
    
    .logo img {
        width: 100px;
        height: 100px;
    }
    
    .header h1 {
        font-size: 2.5rem;
        padding: 0;
    }
    
    .wallet-header h1 {
        font-size: 2.8rem;
        padding: 0;
    }
    
    .wallet-form-header h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
        max-width: 600px;
        padding: 0;
    }
    
    .wallet-subtitle {
        font-size: 1.2rem;
        padding: 0;
    }
    
    .get-started-btn {
        padding: 16px 32px;
        font-size: 1.1rem;
        min-width: 220px;
    }
    
    .back-btn {
        padding: 16px 32px;
        font-size: 1.1rem;
    }
    
    .main-content {
        padding: 0 0 60px;
    }
    
    .features {
        margin-bottom: 60px;
    }
    
    .features h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .features-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .feature-image {
        height: 160px;
    }
    
    .feature-content {
        padding: 20px;
    }
    
    .steps {
        margin-top: 60px;
    }
    
    .steps h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .steps-container {
        gap: 20px;
    }
    
    .step {
        padding: 20px;
        gap: 20px;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    /* Services Grid - Tablet */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 0 60px;
    }
    
    .service-card {
        padding: 24px;
        gap: 20px;
    }
    
    .service-icon {
        font-size: 2.2rem;
        width: 60px;
        height: 60px;
    }
    
    .service-content h3 {
        font-size: 1.3rem;
    }
    
    .service-content p {
        font-size: 0.95rem;
    }
    
    /* Wallet Grid - Tablet */
    .wallet-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 0 0 60px;
    }
    
    .wallet-category {
        padding: 25px;
    }
    
    .wallet-category h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .wallet-list {
        gap: 16px;
    }
    
    .wallet-item {
        padding: 20px;
    }
    
    .wallet-icon {
        font-size: 2.2rem;
        width: 60px;
        height: 60px;
    }
    
    .wallet-info h3 {
        font-size: 1.3rem;
    }
    
    .wallet-info p {
        font-size: 0.95rem;
    }
    
    .wallet-search {
        max-width: 600px;
        margin: 0 auto 50px;
    }
    
    .wallet-search input {
        padding: 18px 25px 18px 55px;
        font-size: 1.1rem;
    }
    
    .wallet-search::before {
        left: 25px;
        font-size: 1.2rem;
    }
    
    .footer {
        padding: 50px 24px 25px;
        margin-top: 50px;
    }
    
    .wallet-footer {
        margin-top: 60px;
        padding: 30px 20px;
    }
    
    .footer-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 40px;
    }
    
    .footer-section {
        flex: 1;
        min-width: 200px;
    }
    
    .footer-logo img {
        width: 80px;
        height: 80px;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    /* Form Styles - Tablet */
    .form-card {
        padding: 35px;
        max-width: 550px;
    }
    
    .wallet-form-logo {
        font-size: 4rem;
        width: 100px;
        height: 100px;
    }
    
    .form-actions {
        gap: 15px;
    }
    
    /* Add hover effects only for devices that support hover */
    @media (hover: hover) {
        .feature-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        }
        
        .feature-card:hover .feature-image img {
            transform: scale(1.05);
        }
        
        .step:hover {
            transform: translateX(4px);
        }
        
        .get-started-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }
        
        .back-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }
        
        .service-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
            border-color: rgba(255, 255, 255, 0.3);
        }
        
        .wallet-item:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
            border-color: rgba(255, 255, 255, 0.3);
        }
        
        .wallet-item:hover .wallet-icon {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
        }
        
        .wallet-category:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                        0 0 0 1px rgba(108, 92, 231, 0.1);
        }
        
        .social-links a:hover {
            background: var(--secondary-color);
            color: var(--bg-dark);
            transform: translateY(-2px);
        }
        
        .footer-section ul li a:hover {
            color: var(--secondary-color);
            transform: translateX(3px);
        }
        
        .wallet-footer a:hover {
            color: var(--primary-color);
            text-decoration: underline;
        }
        
        .logo img:hover {
            transform: scale(1.05);
        }
        
        /* Form Hover Effects */
        .type-option:hover {
            background: var(--bg-light);
            border-color: var(--primary-color);
        }
        
        .btn-connect:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }
        
        .btn-close:hover {
            background: var(--bg-light);
        }
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .header {
        padding: 90px 0 70px;
    }
    
    .wallet-header {
        padding: 90px 0 70px;
    }
    
    .header h1 {
        font-size: 3rem;
    }
    
    .wallet-header h1 {
        font-size: 3.2rem;
    }
    
    .wallet-form-header h1 {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .feature-image {
        height: 180px;
    }
    
    .step {
        padding: 25px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    /* Services Grid - Desktop */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .service-card {
        padding: 28px;
    }
    
    .service-icon {
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
    }
    
    .service-content h3 {
        font-size: 1.4rem;
    }
    
    .service-content p {
        font-size: 1rem;
    }
    
    /* Wallet Grid - Desktop */
    .wallet-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
    
    .wallet-category {
        padding: 28px;
    }
    
    .wallet-item {
        padding: 22px;
    }
    
    .wallet-icon {
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
    }
    
    .wallet-info h3 {
        font-size: 1.4rem;
    }
    
    .wallet-info p {
        font-size: 1rem;
    }
}

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .container {
        padding: 0 32px;
    }
    
    .header h1 {
        font-size: 3.5rem;
    }
    
    .wallet-header h1 {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
    
    .wallet-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Ultra-wide screens (1920px and up) */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    
    .header h1 {
        font-size: 4rem;
    }
    
    .wallet-header h1 {
        font-size: 4rem;
    }
    
    .features-grid {
        gap: 40px;
    }
    
    .feature-image {
        height: 200px;
    }
}

/* iPad Pro and similar tablets */
@media (min-width: 1024px) and (max-height: 1366px) and (orientation: portrait) {
    .header {
        padding: 80px 0 60px;
    }
    
    .wallet-header {
        padding: 80px 0 60px;
    }
    
    .header h1 {
        font-size: 2.8rem;
    }
    
    .wallet-header h1 {
        font-size: 2.8rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Landscape tablets and small laptops */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .header {
        padding: 60px 0 40px;
    }
    
    .wallet-header {
        padding: 60px 0 40px;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Safe Area Insets for Modern Phones */
@supports(padding: max(0px)) {
    .container,
    .footer,
    .wallet-footer {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
    
    .header {
        padding-top: max(30px, env(safe-area-inset-top));
    }
    
    .wallet-header {
        padding-top: max(30px, env(safe-area-inset-top));
    }
    
    .footer {
        padding-bottom: max(15px, env(safe-area-inset-bottom));
    }
    
    .wallet-footer {
        padding-bottom: max(15px, env(safe-area-inset-bottom));
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .wallet-item {
        opacity: 1;
        transform: none;
        animation: none;
    }
    
    .form-card {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --glass-effect: rgba(255, 255, 255, 0.15);
        --glass-border: rgba(255, 255, 255, 0.3);
    }
    
    .wallet-item {
        border: 2px solid var(--glass-border);
    }
    
    .type-option {
        border: 2px solid var(--glass-border);
    }
}

/* Dark mode consistency */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #ffffff;
        --text-light: #e0e0e0;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}