/* Mobile Styles - mobile.css */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Force Light Theme */
.theme-toggle, 
#themeToggle,
[data-theme-toggle],
.theme-switcher {
    display: none !important;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-gradient {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.75rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
    flex-shrink: 0;
}

.brand-icon {
    color: #FFD700;
    font-size: 1.1rem;
}

.brand-text {
    text-decoration: none;
    color: #677be5;
    font-weight: 700;
    transition: color 0.3s ease;
}

/* Mobile Menu Button - Only visible on mobile */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #667eea;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    min-width: 44px;
    min-height: 44px;
}

.mobile-menu-btn:hover {
    background: rgba(102, 126, 234, 0.1);
}

.mobile-menu-btn.active {
    color: #5a67d8;
    background: rgba(102, 126, 234, 0.1);
}

/* Hide desktop elements on mobile */
.nav-menu,
.nav-auth,
.nav-user {
    display: none !important;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 2500;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-menu.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.mobile-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    background: rgba(100, 116, 139, 0.1);
    color: #1e293b;
}

.mobile-nav-links {
    padding: 1rem 0;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: #f8fafc;
    color: #667eea;
    padding-left: 1.5rem;
}

.mobile-nav-link.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1), transparent);
    color: #667eea;
    border-left: 3px solid #667eea;
}

.mobile-nav-auth {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.mobile-nav-auth .btn-primary,
.mobile-nav-auth .btn-secondary {
    width: 100%;
    margin-bottom: 0.5rem;
    justify-content: center;
}

.mobile-nav-user {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    display: none;
}

.mobile-nav-user.active {
    display: block;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.mobile-user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.mobile-user-details {
    flex: 1;
    min-width: 0;
}

.mobile-user-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    word-break: break-word;
}

.mobile-user-email {
    color: #667eea;
    font-size: 0.8rem;
    word-break: break-word;
}

.mobile-logout-btn {
    width: 100%;
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mobile-logout-btn:hover {
    background: #dc2626;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-link,
.nav-link2 {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
}

.nav-auth,
.nav-user {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.nav-user {
    display: none;
}

.nav-user:not(.hidden) {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
}

.nav-auth.hidden, 
.nav-user.hidden {
    display: none !important;
}

.welcome-text {
    color: #64748b;
    font-size: 0.75rem;
    display: none; /* Hide on very small screens */
}

/* Mobile Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.65rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.65rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.btn-outline:hover {
    background: white;
    color: #667eea;
}

.btn-large {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
}

.btn-full {
    width: 100%;
}

.btn-small {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    border-radius: 6px;
}

.btn-copy {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.btn-copy:hover {
    background: #5a67d8;
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.4rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.copy-btn:hover {
    background: #5a67d8;
}

.plan-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.85rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.plan-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-contact {
    background: white;
    color: #667eea;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.btn-contact:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Mobile Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0 15px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 50px;
    height: 50px;
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 70px;
    height: 70px;
    top: 65%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 40px;
    height: 40px;
    bottom: 25%;
    left: 15%;
    animation-delay: 4s;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    padding-top: 80px;
    width: 100%;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 80px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label2 {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.25rem;
    color: #fff !important;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.25rem;
    color: #000 !important;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.hero-actions .btn-primary,
.hero-actions .btn-outline {
    width: 100%;
    max-width: 280px;
    justify-content: center;
}

/* Mobile Staking Plans */
.staking-plans {
    padding: 60px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 15px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #333;
}

.faq-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #000;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #63686f;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.5;
}

.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0 15px;
}

.plan-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.plan-card.featured {
    border-color: #667eea;
    transform: scale(1.02);
}

.plan-card.featured::before,
.plan-card.premium::before {
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.plan-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-duration {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.4rem;
}

.plan-apr {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-details {
    margin-bottom: 1.5rem;
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
}

.plan-feature i {
    color: #22c55e;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Mobile Dashboard */
.dashboard {
    padding: 80px 0 40px;
    background: #f8fafc;
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 15px 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.dashboard-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.user-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.user-id {
    font-size: 0.8rem;
    color: #64748b;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0 15px;
}

.stat-card {
    background: white;
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.card-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

/* Mobile Stakes Section */
.stakes-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 0 15px;
}

.stakes-section .section-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.stakes-section .section-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.stakes-table {
    width: 100%;
}

.stakes-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

/* Mobile Table - Card Layout */
.table-header {
    display: none; /* Hide table header on mobile */
}

.table-body {
    margin-top: 0;
}

.stake-row,
.table-row {
    display: block;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.stake-row > div,
.table-row > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.85rem;
}

.stake-row > div:last-child,
.table-row > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stake-row > div::before,
.table-row > div::before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.025em;
}

/* Add data labels for mobile cards */
.table-row > div:nth-child(1)::before {
    content: "Amount";
}

.table-row > div:nth-child(2)::before {
    content: "Period";
}

.table-row > div:nth-child(3)::before {
    content: "Start Date";
}

.table-row > div:nth-child(4)::before {
    content: "End Date";
}

.table-row > div:nth-child(5)::before {
    content: "Rewards";
}

.table-row > div:nth-child(6)::before {
    content: "Status";
}

.table-row > div:nth-child(7)::before {
    content: "Action";
}

/* Status Badges - Mobile */
.stake-status,
.status-badge,
.deposit-status {
    padding: 0.2rem 0.6rem;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Mobile Education Section */
.education {
    padding: 60px 0;
    background: #f8fafc;
}

.education-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0 15px;
}

.education-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.education-card:hover {
    transform: translateY(-3px);
}

.education-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    color: white;
    font-size: 1.5rem;
}

.education-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #1e293b;
}

.education-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.9rem;
}

.staking-instructions {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 30px 15px !important;
}

.staking-instructions h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
    text-align: center;
}

.instruction-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.2rem;
    background: #f8fafc;
}

.instruction-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.instruction-header i {
    color: #667eea;
    font-size: 1.2rem;
}

.instruction-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.wallet-address label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.85rem;
}

.address-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

#stakingAddress {
    font-family: 'Monaco', monospace;
    font-size: 0.7rem;
    color: #1e293b;
    word-break: break-all;
    background: #f8fafc;
    padding: 0.6rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.instruction-steps {
    background: white;
    border-radius: 8px;
    padding: 1.2rem;
}

.instruction-steps ol {
    padding-left: 1.2rem;
}

.instruction-steps li {
    margin-bottom: 0.6rem;
    color: #374151;
    line-height: 1.6;
    font-size: 0.85rem;
}

/* Mobile FAQ Preview */
.faq-preview {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.faq-preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 15px;
}

.faq-preview-item {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.faq-preview-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.faq-preview-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-preview-item:hover .faq-preview-icon {
    transform: scale(1.05);
}

.faq-preview-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.8rem;
}

.faq-preview-item p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.faq-preview-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.faq-preview-link:hover {
    color: #5a67d8;
    transform: translateX(3px);
}

.faq-preview-link i {
    transition: transform 0.3s ease;
}

.faq-preview-link:hover i {
    transform: translateX(2px);
}

.faq-preview-cta {
    text-align: center;
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 1.5rem 15px 0;
}

.faq-preview-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.8rem;
}

.faq-preview-cta p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Mobile Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 1.2rem;
    width: calc(100% - 20px);
    max-width: none;
    position: relative;
    z-index: 2001;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    margin: 10px auto;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.staking-modal {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    overflow-y: auto;
}

.payment-modal {
    width: calc(100% - 20px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #f1f5f9;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* Mobile Steps Indicator */
.steps-indicator {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
    padding: 0.8rem 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    width: 100%;
}

.step.active,
.step.completed {
    opacity: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: background 0.3s ease;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.step.active .step-number {
    background: #667eea;
    color: white;
}

.step.completed .step-number {
    background: #22c55e;
    color: white;
}

.step-label {
    font-size: 0.8rem;
    text-align: left;
    flex: 1;
}

.step-title {
    font-weight: 500;
    color: #374151;
    font-size: 0.8rem;
}

.step-line {
    display: none; /* Hide connecting lines on mobile */
}

.step-content {
    min-height: auto;
    max-height: calc(60vh - 120px);
    overflow-y: auto;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.staking-step-content {
    min-height: auto;
    max-height: calc(60vh - 120px);
    overflow-y: auto;
    padding: 0.8rem 0;
    -webkit-overflow-scrolling: touch;
}

.staking-step-content.hidden {
    display: none;
}

.step-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.step-header h4 {
    color: #667eea;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.step-header p {
    color: #6b7280;
    font-size: 0.85rem;
}

.step-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.2rem;
    padding-top: 0.8rem;
    border-top: 1px solid #e5e7eb;
}

.step-actions button {
    width: 100%;
    min-width: auto;
    max-width: none;
    padding: 0.7rem;
    font-size: 0.85rem;
}

/* Mobile Form Groups */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    color: #6b7280;
    font-size: 0.7rem;
    margin-top: 0.25rem;
    display: block;
    line-height: 1.4;
}

/* Mobile Preview Cards */
.stake-preview,
.earnings-preview {
    border-radius: 8px;
    padding: 0.8rem;
    margin: 0.8rem 0;
    max-height: 180px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.stake-preview {
    background: #f8fafc;
}

.earnings-preview {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
}

.earnings-preview h5 {
    color: #0369a1;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.preview-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.8rem;
}

.preview-row:last-child,
.preview-row.total {
    margin-bottom: 0;
    font-weight: 700;
    font-size: 0.9rem;
    color: #667eea;
    padding-top: 0.6rem;
    border-top: 2px solid #e2e8f0;
}

.preview-row.total {
    border-top: 2px solid #0ea5e9;
    color: #0369a1;
}

/* Mobile Information Cards */
.wallet-info-card {
    background: #f8fafc;
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    max-height: 220px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.wallet-info-card h5 {
    margin-bottom: 0.8rem;
    color: #667eea;
    font-size: 0.9rem;
}

.instructions-card {
    background: #fef3cd;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    max-height: 220px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.instructions-card h5 {
    color: #92400e;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.instructions-card ul {
    margin: 0;
    padding-left: 1.2rem;
}

.instructions-card li {
    margin-bottom: 0.4rem;
    color: #92400e;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Mobile Wallet Address */
.wallet-address {
    font-family: 'Courier New', monospace;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 0.65rem;
    word-break: break-all;
    text-align: center;
    line-height: 1.3;
}

.wallet-address-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.wallet-address-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.address-label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
}

/* Mobile Empty States */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #64748b;
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    opacity: 0.5;
}

.empty-state p {
    padding-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Mobile Notifications */
.notification {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    background: white;
    padding: 0.8rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
    max-width: calc(100% - 20px);
}

.notification.success {
    border-left: 4px solid #10b981;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

.notification.warning {
    border-left: 4px solid #f59e0b;
}

.notification.info {
    border-left: 4px solid #3b82f6;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    font-size: 0.85rem;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 0.2rem;
    flex-shrink: 0;
}

/* Mobile About Page */
.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0 40px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.about-hero .container {
    position: relative;
    z-index: 2;
}

.about-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.about-hero p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 100%;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
    padding: 0 15px;
}

.about-main {
    padding: 60px 0;
}

.how-it-works {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin: 0 15px 2rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.step-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 16px;
    background: #f8fafc;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: white;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
    position: relative;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.step-number {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #FFD700;
    color: #1e293b;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #1e293b;
}

.step-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.9rem;
}

.mission-section {
 visibility:hidden !important;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.mission-card {
    padding: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.mission-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.mission-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.8rem;
}

.mission-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.85rem;
}

.security-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    margin: 0 15px 2rem;
    border: 2px solid #f59e0b;
}

.security-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.security-feature {
    background: white;
    padding: 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.security-feature:hover {
    transform: translateY(-2px);
}

.security-feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.security-feature-content h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 0.4rem;
}

.security-feature-content p {
    color: #92400e;
    font-size: 0.8rem;
    line-height: 1.5;
}

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin: 0 15px;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: float 20s linear infinite;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.cta-section p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-cta {
    background: #FFD700;
    color: #1e293b;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.btn-cta:hover {
    background: #FFA500;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

/* Mobile Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0 15px;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #FFD700;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.footer-brand i {
    color: #FFD700;
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.8;
    font-size: 0.85rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.4rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-size: 0.85rem;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid #334155;
    text-align: center;
    opacity: 0.6;
    font-size: 0.8rem;
    margin: 0 15px;
}

/* Mobile Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(180deg); }
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
        opacity: 1; 
    }
    50% { 
        opacity: 0.5; 
    }
    70% { 
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); 
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-1px); }
}

/* Animation delays for mobile cards */
.plan-card,
.education-card,
.dashboard-card,
.step-card,
.mission-card,
.security-feature,
.faq-preview-item {
    animation: fadeInUp 0.5s ease forwards;
}

.plan-card:nth-child(1) { animation-delay: 0.1s; }
.plan-card:nth-child(2) { animation-delay: 0.15s; }
.plan-card:nth-child(3) { animation-delay: 0.2s; }
.plan-card:nth-child(4) { animation-delay: 0.25s; }

/* Mobile Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* Touch-specific optimizations */
button,
.btn-primary,
.btn-secondary,
.btn-outline,
.plan-btn,
.copy-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

/* Landscape mobile optimizations */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 60px 15px 20px;
    }
    
    .hero-content {
        padding-top: 40px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        margin-bottom: 1.5rem;
        gap: 1rem;
    }
    
    .modal-content {
        max-height: calc(100vh - 10px);
        margin: 5px auto;
    }
    
    .step-content {
        max-height: calc(70vh - 100px);
    }
    
    .steps-indicator {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .step {
        flex-direction: column;
        min-width: 60px;
    }
    
    .step-label {
        font-size: 0.7rem;
        text-align: center;
    }
}

/* Very small mobile devices */
@media screen and (max-width: 375px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .nav-brand {
        font-size: 1rem;
    }
    
    .brand-icon {
        font-size: 1rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    #stakingAddress {
        font-size: 0.6rem;
    }
    
    .wallet-address {
        font-size: 0.6rem;
    }
}

/* Ultra small devices */
@media screen and (max-width: 320px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .stat-label2 {
        font-size: 0.7rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 0.55rem 0.9rem;
        font-size: 0.75rem;
    }
}

/* Print styles for mobile */
@media print {
    .navbar,
    .modal,
    button,
    .btn,
    .footer,
    .hero-actions,
    .plan-btn,
    .step-actions {
        display: none !important;
    }
    
    body {
        font-size: 10pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .hero-title {
        font-size: 16pt;
        color: #000;
    }
    
    .section-title {
        font-size: 14pt;
        color: #000;
    }
    
    .plan-card,
    .education-card,
    .faq-preview-item {
        break-inside: avoid;
        border: 1px solid #ccc;
        margin-bottom: 0.5rem;
        padding: 0.5rem;
    }
    
    @page {
        margin: 0.5in;
    }
}

/* Accessibility improvements for mobile */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .plan-card,
    .education-card,
    .faq-preview-item {
        border: 2px solid #000;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid #000;
    }
}

/* Dark mode considerations for mobile */
@media (prefers-color-scheme: dark) {
    /* Note: This would override the light theme requirement if implemented */
    /* Keeping the light theme as requested in the original requirements */
}

/* Add this to the end of your mobile.css file */

/* Mobile Stakes Table with Horizontal Scrolling */
@media screen and (max-width: 768px) {
    /* Stakes table container with horizontal scroll */
    .stakes-container {
        background: white;
        border-radius: 12px;
        overflow: visible;
        margin: 0 -15px; /* Extend to screen edges */
        padding: 0 15px;
    }
    
    .stakes-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px 15px 15px;
    }
    
    /* Show table header on mobile */
    .table-header {
        display: grid !important;
        grid-template-columns: 100px 80px 100px 100px 100px 80px 120px;
        gap: 1rem;
        padding: 1rem 1rem 0.75rem 1rem;
        background: #f8fafc;
        border-bottom: 2px solid #e2e8f0;
        font-weight: 600;
        font-size: 0.75rem;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.025em;
        min-width: 740px;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    /* Reset table body styles */
    .table-body {
        margin-top: 0;
        min-width: 740px;
    }
    
    /* Override the card layout for table rows */
    .table-body > div[style*="grid"] {
        display: grid !important;
        grid-template-columns: 100px 80px 100px 100px 100px 80px 120px !important;
        gap: 1rem !important;
        padding: 1rem !important;
        border-bottom: 1px solid #e2e8f0 !important;
        background: white !important;
        border-radius: 0 !important;
        margin-bottom: 0 !important;
        box-shadow: none !important;
        border: none !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        min-width: 740px;
        align-items: center;
    }
    
    /* Remove pseudo elements for mobile card labels */
    .table-body > div > div::before {
        display: none !important;
    }
    
    /* Style individual cells */
    .table-body > div > div {
        display: block !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        border-bottom: none !important;
        font-size: 0.85rem !important;
        align-items: center;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Ensure content doesn't get cut off */
    .table-body > div > div > strong {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Special styling for time info */
    .table-body > div > div:nth-child(4) {
        font-size: 0.75rem !important;
        line-height: 1.3;
    }
    
    .table-body > div > div:nth-child(4) small {
        display: block;
        margin-top: 0.25rem;
        white-space: nowrap;
    }
    
    /* Status badges */
    .table-body span[style*="background"] {
        display: inline-block !important;
        white-space: nowrap;
        padding: 0.25rem 0.5rem !important;
        font-size: 0.65rem !important;
    }
    
    /* Action buttons */
    .table-body button {
        white-space: nowrap;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.7rem !important;
        border-radius: 6px !important;
    }
    
    .table-body button i {
        margin-right: 0.25rem;
        font-size: 0.7rem;
    }
    
    /* Disabled button styling */
    .table-body button[disabled] {
        padding: 0.4rem 0.6rem !important;
    }
    
    /* Empty state - keep centered */
    .empty-state {
        min-width: 100%;
        grid-column: 1 / -1;
        text-align: center;
        padding: 3rem 1rem !important;
    }
    
    /* Add scroll indicator */
    .stakes-table::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to right, transparent, rgba(0,0,0,0.05));
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.3s ease;
    }
    
    /* Horizontal scrollbar styling for stakes table */
    .stakes-table::-webkit-scrollbar {
        height: 6px;
    }
    
    .stakes-table::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 3px;
    }
    
    .stakes-table::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 3px;
    }
    
    .stakes-table::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
    
    /* Scroll hint animation */
    @keyframes bounce {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(-5px); }
    }
}

/* For very small screens, reduce column widths slightly */
@media screen and (max-width: 375px) {
    .table-header,
    .table-body > div[style*="grid"] {
        grid-template-columns: 90px 70px 90px 90px 90px 70px 110px !important;
        min-width: 680px;
    }
}

/* Landscape mode adjustments */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .stakes-table {
        max-height: calc(100vh - 220px);
        overflow-y: auto;
    }
    
    .table-header {
        position: sticky;
        top: 0;
        background: #f8fafc;
        z-index: 20;
    }
}