/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
/* === Theme Variables (soft modern palette) === */
:root {
    --primary: #6366f1; /* indigo-500 */
    --primary-hover: #4f46e5; /* indigo-600 */
    --bg: #f9fafb; /* zinc-100 */
    --card-bg: #ffffff;
    --card-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg);
    color: #333;
    line-height: 1.6;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: var(--primary);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--primary-hover);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 10px;
}

/* Landing Page */
.landing-container {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
    background-size: 300% 300%;
    animation: gentleGradient 20s ease infinite;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes gentleGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 100%);
    z-index: 0;
}

/* Floating Particles Animation */
.landing-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(99, 102, 241, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(139, 92, 246, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(168, 85, 247, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(99, 102, 241, 0.2), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(139, 92, 246, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: floatParticles 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes floatParticles {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 50px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo h1 {
    color: #e2e8f0;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.auth-buttons .btn {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.auth-buttons .btn:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.2);
}

.landing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 60px 20px;
    position: relative;
    z-index: 1;
    color: #e2e8f0;
    text-align: center;
    flex: 1;
}

.intro-text {
    max-width: 900px;
    margin-bottom: 80px;
}

.intro-text h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #e2e8f0 0%, #a5b4fc 50%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    line-height: 1.2;
}

.intro-text p {
    font-size: 20px;
    margin-bottom: 20px;
    color: #cbd5e1;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: none;
}

/* Crypto Price Cards */
.crypto-prices {
    width: 100%;
    max-width: 1400px;
    margin-bottom: 0;
}

.crypto-prices h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 50px;
    color: #e2e8f0;
    text-shadow: none;
}

.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.price-card {
    background: rgba(30, 35, 50, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(75, 85, 120, 0.3);
    border-radius: 20px;
    padding: 30px 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(75, 85, 120, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(75, 85, 120, 0.6), transparent);
}

.price-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(75, 85, 120, 0.5);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(75, 85, 120, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 24px rgba(75, 85, 120, 0.2);
}

.coin-icon {
    font-size: 52px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.3));
}

.coin-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #f1f5f9;
}

.coin-symbol {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.coin-price {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #f8fafc;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.price-change {
    font-size: 15px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 12px;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.price-up {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.2);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
    animation: blinkGreen 0.8s ease-in-out;
}

.price-down {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
    animation: blinkRed 0.8s ease-in-out;
}

/* Portfolio blinking animations */
@keyframes blinkGreen {
    0% {
        background: rgba(34, 197, 94, 0.15);
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
    }
    50% {
        background: rgba(34, 197, 94, 0.4);
        box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
        transform: scale(1.02);
    }
    100% {
        background: rgba(34, 197, 94, 0.15);
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
    }
}

@keyframes blinkRed {
    0% {
        background: rgba(239, 68, 68, 0.15);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
    }
    50% {
        background: rgba(239, 68, 68, 0.4);
        box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
        transform: scale(1.02);
    }
    100% {
        background: rgba(239, 68, 68, 0.15);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
    }
}

/* Portfolio specific blinking classes */
.portfolio-profit-up {
    color: #4ade80 !important;
    animation: blinkGreenText 1s ease-in-out;
}

.portfolio-profit-down {
    color: #f87171 !important;
    animation: blinkRedText 1s ease-in-out;
}

.portfolio-pl-up {
    color: #4ade80 !important;
    animation: blinkGreenText 1s ease-in-out;
}

.portfolio-pl-down {
    color: #f87171 !important;
    animation: blinkRedText 1s ease-in-out;
}

@keyframes blinkGreenText {
    0% {
        color: #4ade80;
        text-shadow: 0 0 5px rgba(74, 222, 128, 0.3);
    }
    50% {
        color: #22c55e;
        text-shadow: 0 0 15px rgba(34, 197, 94, 0.6);
        transform: scale(1.05);
    }
    100% {
        color: #4ade80;
        text-shadow: 0 0 5px rgba(74, 222, 128, 0.3);
    }
}

@keyframes blinkRedText {
    0% {
        color: #f87171;
        text-shadow: 0 0 5px rgba(248, 113, 113, 0.3);
    }
    50% {
        color: #ef4444;
        text-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
        transform: scale(1.05);
    }
    100% {
        color: #f87171;
        text-shadow: 0 0 5px rgba(248, 113, 113, 0.3);
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalFadeIn 0.4s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal h2 {
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* CAPTCHA Styles */
.captcha-group {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.captcha-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    border: 1px solid #ddd;
}

#captcha-question {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
}

.refresh-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.refresh-btn:hover {
    background: #2980b9;
}

.refresh-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

#captcha-answer {
    margin-top: 0 !important;
}

.form-switch {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.form-switch a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.form-switch a:hover {
    text-decoration: underline;
}

.join-channel-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

.btn-telegram {
    background: linear-gradient(135deg, #229ED9 0%, #37aee2 50%, #5865f2 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 16px;
    padding: 16px 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 32px rgba(34, 158, 217, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-telegram::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn-telegram:hover::before {
    left: 100%;
}

.btn-telegram i {
    font-size: 22px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.btn-telegram:hover {
    background: linear-gradient(135deg, #37aee2 0%, #5865f2 50%, #229ED9 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 16px 48px rgba(34, 158, 217, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        0 0 40px rgba(88, 101, 242, 0.2);
}

.main-footer {
    width: 100%;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #e2e8f0;
    padding: 40px 0 25px 0;
    margin-top: 0;
    box-shadow: 0 -4px 32px rgba(0,0,0,0.2);
    font-size: 16px;
    position: relative;
    bottom: 0;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(10px);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.footer-keywords {
    font-size: 15px;
    opacity: 0.85;
    text-align: center;
    margin-bottom: 6px;
}
.footer-author {
    font-weight: bold;
    letter-spacing: 1px;
    color: #ffe082;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.12);
}
.footer-copyright {
    font-size: 16px;
    opacity: 0.95;
    text-align: center;
}
@media (max-width: 600px) {
    .main-footer { font-size: 14px; padding: 20px 0 10px 0; }
    .footer-content { font-size: 13px; }
    .footer-keywords { font-size: 12px; }
    .btn-telegram { font-size: 15px; padding: 10px 18px; }
    .landing-content { padding: 20px 0 0 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .auth-buttons {
        gap: 10px;
    }

    .auth-buttons .btn {
        font-size: 12px;
        padding: 8px 16px;
    }

    .landing-content {
        padding: 60px 15px 40px 15px;
    }

    .intro-text h2 {
        font-size: 36px;
        margin-bottom: 25px;
    }

    .intro-text p {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .crypto-prices {
        max-width: 100%;
    }

    .price-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .price-card {
        max-width: 100%;
        padding: 30px 20px;
    }

    .coin-icon {
        font-size: 48px;
        margin-bottom: 15px;
    }

    .coin-price {
        font-size: 24px;
    }

    .btn-telegram {
        font-size: 16px;
        padding: 14px 24px;
    }

    .landing-container::after {
        background-size: 150px 75px;
    }
}

@media (max-width: 480px) {
    .price-card {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 20px;
    }
} 

.toast {
    visibility: hidden;
    min-width: 280px;
    max-width: 90vw;
    background: rgba(40, 167, 69, 0.98);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 18px 32px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    top: 60px;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 24px rgba(40,167,69,0.18);
    opacity: 0;
    transition: opacity 0.6s, visibility 0.6s;
}
.toast.show {
    visibility: visible;
    opacity: 1;
}

/* OTP Modal Styles */
.otp-description {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

#otp-code {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 3px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

#otp-code:focus {
    border-color: #229ED9;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 158, 217, 0.1);
}

.otp-timer {
    text-align: center;
    margin: 15px 0;
    color: #666;
}

.otp-timer strong {
    color: #e74c3c;
    font-weight: bold;
}

.otp-actions {
    text-align: center;
    margin-top: 15px;
}

.btn-link {
    background: none;
    border: none;
    color: #229ED9;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.btn-link:hover:not(:disabled) {
    color: #1a7ba8;
}

.btn-link:disabled {
    color: #ccc;
    cursor: not-allowed;
    text-decoration: none;
}

/* OTP Input Animation */
#otp-code.error {
    border-color: #e74c3c;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* === Dark Mode Variables (auto) === */
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #8b93ff;
    --primary-hover: #6d75ff;
    --bg: #111827;
    --card-bg: #1f2937;
    --card-shadow: 0 4px 14px rgba(0,0,0,0.6);
    --text: #e5e7eb;
  }
  body {
    color: var(--text);
  }
  .sidebar {
    background: #1f2937;
    color: var(--text);
  }
  .nav-menu li a {
    color: var(--text);
  }
  .nav-menu li a:hover {
    background-color: rgba(139,147,255,0.15);
    color: var(--primary);
  }
  .nav-menu li.active a {
    background-color: rgba(139,147,255,0.20);
  }
  .market-overview, .portfolio-section, .dashboard-main .price-card {
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
  }
} 

/* === Manual Dark Mode (toggle) === */
:root[data-theme='dark'] {
  --primary: #8b93ff;
  --primary-hover: #6d75ff;
  --bg: #111827;
  --card-bg: #1f2937;
  --card-shadow: 0 4px 14px rgba(0,0,0,0.6);
  --text: #e5e7eb;
}

[data-theme='dark'] body {
  color: var(--text);
  background-color: var(--bg);
}

[data-theme='dark'] .sidebar {
  background: #1f2937;
  color: var(--text);
}

[data-theme='dark'] .nav-menu li a {
  color: var(--text);
}

[data-theme='dark'] .nav-menu li a:hover {
  background-color: rgba(139,147,255,0.15);
  color: var(--primary);
}

[data-theme='dark'] .nav-menu li.active a {
  background-color: rgba(139,147,255,0.20);
}

[data-theme='dark'] .market-overview,
[data-theme='dark'] .portfolio-section,
[data-theme='dark'] .dashboard-main .price-card {
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.theme-toggle {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 18px;
  cursor: pointer;
  color: #e2e8f0;
  margin-right: 18px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.theme-toggle:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* Enhanced Landing Theme Toggle */
.enhanced-landing-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 16px !important;
  padding: 14px 20px !important;
  color: white !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4), 0 0 0 0 rgba(255, 255, 255, 0.5) !important;
  position: relative !important;
  overflow: hidden !important;
  min-width: 160px !important;
  justify-content: center !important;
  margin-right: 18px !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.enhanced-landing-toggle::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) !important;
  transition: left 0.6s ease !important;
}

.enhanced-landing-toggle:hover::before {
  left: 100% !important;
}

/* Pulse animation for better visibility */
.enhanced-landing-toggle {
  animation: subtlePulse 3s ease-in-out infinite !important;
}

@keyframes subtlePulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4), 0 0 0 0 rgba(255, 255, 255, 0.5) !important;
  }
  50% {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6), 0 0 0 2px rgba(255, 255, 255, 0.3) !important;
  }
}

.enhanced-landing-toggle:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.2) !important;
  background: linear-gradient(135deg, #3730a3 0%, #6b21a8 100%) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.enhanced-landing-toggle:active {
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.5) !important;
}

.enhanced-landing-toggle .theme-icon {
  font-size: 18px !important;
  transition: all 0.3s ease !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
}

.enhanced-landing-toggle:hover .theme-icon {
  transform: rotate(20deg) scale(1.1) !important;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)) !important;
}

.enhanced-landing-toggle .theme-text {
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Dark mode styles for landing theme toggle */
[data-theme='dark'] .enhanced-landing-toggle {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 16px rgba(45, 55, 72, 0.4) !important;
}

[data-theme='dark'] .enhanced-landing-toggle:hover {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%) !important;
  box-shadow: 0 8px 24px rgba(45, 55, 72, 0.6) !important;
}

[data-theme='dark'] .enhanced-landing-toggle .theme-icon {
  color: #fbbf24 !important;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5)) !important;
}

/* Icon specific animations for landing */
.enhanced-landing-toggle .theme-icon.fa-moon {
  color: #e2e8f0 !important;
  filter: drop-shadow(0 0 8px rgba(226, 232, 240, 0.5)) !important;
}

.enhanced-landing-toggle .theme-icon.fa-sun {
  color: #fbbf24 !important;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.7)) !important;
  animation: sunRotate 4s linear infinite !important;
}

@keyframes sunRotate {
  0% { transform: rotate(0deg) !important; }
  100% { transform: rotate(360deg) !important; }
}

/* Responsive design for landing theme toggle */
@media (max-width: 768px) {
  .enhanced-landing-toggle {
    min-width: 140px !important;
    padding: 12px 16px !important;
    font-size: 13px !important;
  }

  .enhanced-landing-toggle .theme-icon {
    font-size: 16px !important;
  }

  .enhanced-landing-toggle .theme-text {
    font-size: 13px !important;
  }
}

@media (max-width: 480px) {
  .enhanced-landing-toggle {
    min-width: 120px !important;
    padding: 10px 14px !important;
    font-size: 12px !important;
    margin-right: 12px !important;
  }

  .enhanced-landing-toggle .theme-icon {
    font-size: 14px !important;
  }

  .enhanced-landing-toggle .theme-text {
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
  }
}

[data-theme='dark'] .enhanced-landing-toggle {
  animation: subtleGlowDark 3s ease-in-out infinite alternate !important;
}

@keyframes subtleGlowDark {
  0% { box-shadow: 0 4px 16px rgba(45, 55, 72, 0.4) !important; }
  100% { box-shadow: 0 4px 20px rgba(75, 85, 99, 0.6) !important; }
}

/* Responsive adjustments for landing */
@media (max-width: 768px) {
  .enhanced-landing-toggle {
    min-width: 120px !important;
    padding: 10px 14px !important;
    margin-right: 12px !important;
  }

  .enhanced-landing-toggle .theme-text {
    font-size: 13px !important;
  }

  .enhanced-landing-toggle .theme-icon {
    font-size: 14px !important;
  }
}

@media (max-width: 480px) {
  .enhanced-landing-toggle {
    min-width: 100px !important;
    padding: 8px 12px !important;
    margin-right: 8px !important;
  }

  .enhanced-landing-toggle .theme-text {
    font-size: 12px !important;
  }

  .enhanced-landing-toggle .theme-icon {
    font-size: 12px !important;
  }
}

/* === Dark Mode Contrast Fixes === */
[data-theme='dark'] h1,
[data-theme='dark'] h2,
[data-theme='dark'] h3,
[data-theme='dark'] h4,
[data-theme='dark'] h5,
[data-theme='dark'] h6,
[data-theme='dark'] p,
[data-theme='dark'] span,
[data-theme='dark'] label {
  color: var(--text);
}

[data-theme='dark'] .dashboard-main .price-card {
  color: var(--text);
  border: 1px solid #374151;
}

[data-theme='dark'] .dashboard-main .coin-symbol {
  color: #9ca3af;
} 

/* --- Features Section (Landing) --- */
.features-section {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto 80px auto;
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card {
    position: relative;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    padding: 40px 28px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 18px 35px rgba(0,0,0,0.2);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.5;
}

.feature-card .icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 160px;
    color: #ffffff;
    opacity: 0.05;
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .feature-card {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .feature-card .icon-bg {
      color: #000000;
      opacity: 0.08;
  }
} 