:root {
    --acorns-green: #74c947;
    --acorns-dark-green: #0b3d17;
    --acorns-text: #2c2c2c;
    --acorns-hero-bg-gradient: linear-gradient(180deg, #74c947 0%, #a2c726 100%);
    --social-proof-bg: #1c2b1f;
    /* Dark green/black for social proof */
}

html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--acorns-text);
}

h1:focus {
    outline: none;
}

a,
.btn-link {
    color: var(--acorns-dark-green);
}

/* Button Overrides */
.btn-acorns-primary {
    background-color: var(--acorns-green);
    color: #fff;
    border: none;
    transition: filter 0.2s;
}

.btn-acorns-primary:hover {
    filter: brightness(0.95);
    background-color: var(--acorns-green);
    color: var(--acorns-dark-green);
}

.btn-dark {
    background-color: #2c2c2c;
    border: none;
}

/* Hero Carousel Section */
.hero-carousel-section {
    background-color: var(--acorns-green);
    background: url('../images/hero-bg.jpg') no-repeat center bottom;
    background-size: cover;
    min-height: 85vh;
}

.hero-slide-content {
    min-height: 85vh;
}

.hero-title {
    color: var(--acorns-text);
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: #4a4a4a;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--acorns-dark-green);
    opacity: 0.3;
    margin: 0 8px;
    border: none;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: var(--acorns-dark-green);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) brightness(0.5); /* Make controls visible on green */
}

/* Social Proof Section */
.social-proof {
    background-color: #202421;
    /* Very dark green/grey */
}

.social-proof h5 {
    font-size: 0.7rem;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.social-proof h3 {
    font-size: 2rem;
}

.font-serif {
    font-family: 'Times New Roman', serif;
}

.ls-1 {
    letter-spacing: 1px;
}

.stats-bar {
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        /* Smaller title on mobile */
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-visuals {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .squirrel-mascot {
        display: none !important;
        /* Hide squirrel on mobile if space is tight */
    }

    .phone-app-preview {
        margin: 2rem auto 0;
    }

    .phone-placeholder {
        width: 240px;
        height: 480px;
        margin: 0 auto;
    }

    .grayscale-logos .col-auto {
        margin-bottom: 2rem;
    }
}

@media (min-width: 992px) {
    .hero-section {
        padding-bottom: 0;
    }

    .hero-visuals {
        margin-top: 20px;
    }
}

.phone-mockup-img {
    max-width: 280px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
    .phone-mockup-img {
        max-width: 240px;
    }
}

/* Download Banner Section */
.download-banner-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.download-banner-card:hover {
    transform: translateY(-5px);
}

.floating-mockup {
    animation: floatMockup 6s ease-in-out infinite;
}

@keyframes floatMockup {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Video Section (Legacy/Replaced) */
.video-section {
    display: none;
}

.video-section .video-bg {
    max-width: 800px;
}

.play-button-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.play-btn {
    transition: transform 0.2s ease;
    border: none;
    background: transparent;
}

.play-btn:hover {
    transform: scale(1.1);
}

/* Features Section */
.letter-spacing-2 {
    letter-spacing: 2px;
}

.feature-hub {
    position: relative;
    height: 700px;
    /* Canvas for the "orbit" */
}

/* Layout for Feature Items - Manual positioning to mimic the cluster */
.feature-item {
    font-size: 1.1rem;
    /* Add icons if simplified */
}

.feature-hub .feature-item:nth-child(2) {
    /* Invest */
    top: 30% !important;
    left: 20% !important;
}

.feature-hub .feature-item:nth-child(3) {
    /* Earn */
    top: 25% !important;
    right: 25% !important;
}

.feature-hub .feature-item:nth-child(4) {
    /* Later */
    top: 50% !important;
    left: 10% !important;
}

.feature-hub .feature-item:nth-child(5) {
    /* Early - Renaming n-child logic from HTML order */
    top: 45% !important;
    right: 15% !important;
}

.feature-hub .feature-item:nth-child(6) {
    /* Banking */
    top: 70% !important;
    left: 25% !important;
}

.feature-hub .feature-item:nth-child(7) {
    /* Learn */
    top: 65% !important;
    right: 30% !important;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .feature-hub {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .feature-hub .position-absolute {
/*        position: static !important;
        transform: none !important;*/
    }

    .feature-hub img {
        margin-bottom: 2rem;
    }
}

/* Why Acorns Section */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-text {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-size: 6rem;
    color: #e0e0e0;
    /* Very light grey for background effect */
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .marquee-text {
        font-size: 3rem;
    }
}

/* Calculator Section */
.calculator-section {
    background-color: #3e5c46;
}

.text-acorns-green {
    color: var(--acorns-green) !important;
}

.bg-acorns-green {
    background-color: var(--acorns-green) !important;
}

.bg-acorns-light-green {
    background-color: #dced7e !important;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-check:checked+.btn-outline-light {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

.btn-check+.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.custom-range::-webkit-slider-runnable-track {
    background: rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.animate-float-slow {
    animation: float 6s ease-in-out infinite;
}

.animate-float-medium {
    animation: float 4s ease-in-out infinite;
}

/* Potential Calculator Polish */
.calculator-section {
    background-color: #0b3d17; /* Deeper dark green */
}

.chart-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.y-axis span {
    font-size: 0.75rem;
    opacity: 0.6;
}

.bar-group {
    transition: all 0.3s ease;
}

.bar-group:hover {
    filter: brightness(1.2);
    transform: scaleX(1.1);
}

/* Home Page News & CTA Refinements */
.news-section {
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.grow-oak-card {
    min-height: 500px;
    background: linear-gradient(135deg, #74c947 0%, #64b53b 100%);
}

.cta-phone-1 {
    transform: rotate(-10deg) translateY(20px);
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.4));
    transition: transform 0.5s ease;
}

.grow-oak-card:hover .cta-phone-1 {
    transform: rotate(-5deg) translateY(0px);
}

@media (max-width: 991.98px) {
    .grow-oak-card {
        min-height: auto;
        text-align: center !important;
    }
    .cta-image-wrapper {
        display: none !important;
    }
}

/* Custom Range Slider Styling */
.custom-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #fff;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    border: 2px solid var(--acorns-green);
}

/* Testimonials Section */
.testimonials-section {
    background-color: #1a1a1a;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

@media (min-width: 992px) {
    .mega-menu-item:hover .mega-menu {
        display: block;
        opacity: 1;
    }
}

.mega-link:hover .fw-bold {
    color: var(--acorns-green);
}

.mega-link img {
    opacity: 0.7;
}

.mega-link:hover img {
    opacity: 1;
}

/* Robust Desktop Hover Fix */
@media (min-width: 992px) {

    /* 1. Bridge the physical gap */
    .mega-menu-item::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 60px;
        /* Covers the navbar padding gap */
        background: transparent;
        z-index: 900;
        display: none;
    }

    .mega-menu-item:hover::after {
        display: block;
    }

    /* 2. Transition Delay strategy */
    .mega-menu {
        display: block !important;
        /* Always calculated for layout */
        visibility: hidden;
        opacity: 0;
        top: 110%;
        /* Slide effect */
        transition: visibility 0s linear 0.2s, opacity 0.2s ease-in-out, top 0.2s ease-in-out;
    }

    .mega-menu-item:hover .mega-menu,
    .mega-menu:hover {
        visibility: visible;
        opacity: 1;
        top: 100%;
        transition-delay: 0s;
        /* Show immediately on hover */
    }
}

/* Animated Underline for Nav Links */
.navbar-nav .nav-link {
    position: relative;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--acorns-green);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::before {
    width: 100%;
}

/* Specific fix for the Mega Menu Parent Link to keep underline when menu is hovered */
.mega-menu-item:hover>.nav-link::before {
    width: 100%;
}

/* Mobile Menu Behavior (Strictly scoped) */
@media (max-width: 991.98px) {
    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        top: 0;
        display: none !important;
        /* Controlled by .show class via JS */
        box-shadow: none !important;
        border-top: none !important;
        padding-top: 0;
        padding-bottom: 0;
        transition: none;
    }

    .mega-menu.show {
        display: block !important;
        animation: slideDown 0.3s ease-out;
    }

    .mega-menu .container {
        padding: 0;
    }

    .mega-menu .d-flex {
        flex-direction: column;
        gap: 0 !important;
    }

    .mega-link {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Invest Page Hero */
.invest-hero {
    background-color: #fdfbf7;
    background-image: url('../images/some/Hero-2025-V2-Invest.avif');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    min-height: 85vh;
    padding-top: 4rem;
}

.later-hero {
    background-color: #fdfbf7;
    background-image: url('../img/page1/Hero-2025-V2-Later-Mob.avif');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    min-height: 85vh;
    padding-top: 4rem;
}
.banking-hero {
    background-color: #fdfbf7;
    background-image: url('../img/page2/Hero-2025-V2-Banking-Mob.avif');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    min-height: 85vh;
    padding-top: 4rem;
}
.earn-hero {
    background-color: #fdfbf7;
    background-image: url('../img/page3/Hero-2025-V3-Earn-Mob.avif');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    min-height: 85vh;
    padding-top: 4rem;
}
.early-hero {
    background-color: #6c5ce7;
    background-image: linear-gradient(135deg, rgba(108, 92, 231, 0.8) 0%, rgba(162, 155, 254, 0.6) 40%, rgba(85, 239, 196, 0.6) 100%), url('../img/page3/Early-Invest-2025-V3-Mob.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    min-height: 85vh;
    padding-top: 4rem;
}

/* Later Page Specific Styles */
.later-display-title {
    color: #212529;
    font-weight: 300;
    font-size: 3.5rem;
    line-height: 1.2;
}

.later-lead-text {
    max-width: 650px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #4a4a4a;
}

.later-badge {
    background-color: #bdf2a2;
    color: #3e5c46;
    font-weight: 600;
    font-size: 0.75rem;
}

.later-card {
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.later-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}

.later-card-match {
    background-color: #f8f7ff;
    color: #6d5ce6;
    border: 1px solid #eeeefc !important;
}

.later-feature-title {
    color: #212529;
    font-size: 2.5rem;
    line-height: 1.2;
}

.text-later-purple {
    color: #6d5ce6 !important;
}


.phone-hero-img {
    max-width: 320px;
    transform: rotate(-5deg);
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.15));
}

.squirrel-invest-img {
    width: 200px;
    right: 10%;
    bottom: 50px;
    transform: rotate(5deg);
}

.floating-notif {
    bottom: 100px;
    left: 10%;
    animation: float 4s ease-in-out infinite;
    max-width: 360px;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 991.98px) {
    .phone-hero-img {
        max-width: 260px;
        transform: none;
        margin-bottom: 2rem;
    }

    .squirrel-invest-img {
        display: none;
    }

    .floating-notif {
        display: none !important;
        /* Hide complex overlay on mobile for cleaner look */
    }

    .invest-bg-curve {
        opacity: 0.5;
    }
}

/* Invest Page Calculator */
.bg-beige-light {
    background-color: #fdfbf7;
}

.text-acorns-dark-green {
    color: var(--acorns-dark-green);
}

.custom-radio .form-check-input {
    display: none;
    /* Hide default radio */
}

.custom-radio .form-check-label {
    cursor: pointer;
    padding: 0.5rem 0.2rem;
    color: #666;
    transition: color 0.2s;
}

.custom-radio .form-check-input:checked+.form-check-label {
    color: var(--acorns-dark-green);
    font-weight: bold;
}

/* Custom Range Slider with Acorn Thumb */
.acorn-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    outline: none;
}

.acorn-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background-image: url('../images/acorn-thumb.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    border: none;
    margin-top: -10px;
    /* Center thumb on track */
}

.acorn-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background-image: url('../images/acorn-thumb.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    border: none;
}

/* Invest Page Features */
.text-acorns-purple {
    color: #5844e8;
    /* Approx Acorns Purple/Blue */
}

.invest-features .marquee-text {
    font-size: 8rem;
    color: #e0e0e0;
    opacity: 0.3 !important;
}

@media (max-width: 768px) {
    .invest-features .display-3 {
        font-size: 2.5rem;
    }

    .invest-features .display-4 {
        font-size: 2rem;
    }

    .invest-features .marquee-text {
        font-size: 4rem;
    }
}
.tr-toast-container {
    position: fixed;
    top: 20px;
    right: 25px;
    z-index: 999999999;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tr-toast {
    width: 360px;
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    backdrop-filter: blur(14px);
    background: rgba(18, 22, 32, 0.92);
    box-shadow: 0 12px 35px rgba(0,0,0,0.45);
    color: #fff;
    position: relative;
    overflow: hidden;
    animation: slideTrade 0.4s ease;
}

.tr-icon {
    font-size: 22px;
    margin-right: 14px;
}

.tr-content {
    flex: 1;
}

.tr-title {
    font-weight: 600;
    font-size: 15px;
}

.tr-message {
    font-size: 13px;
    opacity: 0.8;
}

.tr-close {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
}

    .tr-close:hover {
        color: #fff;
    }

/* Trading Colors */

.tr-success {
    border-left: 4px solid #00c076;
}

    .tr-success .tr-icon {
        color: #00c076;
    }

.tr-error {
    border-left: 4px solid #ff4d4f;
}

    .tr-error .tr-icon {
        color: #ff4d4f;
    }

.tr-warning {
    border-left: 4px solid #ffaa00;
}

    .tr-warning .tr-icon {
        color: #ffaa00;
    }

.tr-info {
    border-left: 4px solid #00a0ff;
}

    .tr-info .tr-icon {
        color: #00a0ff;
    }

/* Progress bar */

.tr-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #00c076, #00a0ff);
    width: 100%;
    animation: shrink linear forwards;
}

@keyframes shrink {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

@keyframes slideTrade {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.extra-small {
    font-size: 0.7rem;
}

.stock-logo-circle {
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.trade-segmented-control {
    background: #f8f9fa;
    padding: 4px;
    border-radius: 12px;
    display: flex;
    gap: 4px;
}

    .trade-segmented-control .btn {
        flex: 1;
        border: none;
        box-shadow: none;
        font-weight: 700;
        font-size: 0.8rem;
        padding: 8px 4px;
        border-radius: 8px;
        color: #6c757d;
        background: transparent;
    }

        .trade-segmented-control .btn.active {
            background: white;
            color: #28a745;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        }

.trade-input-group {
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 16px;
}

    .trade-input-group label {
        font-size: 0.75rem;
        font-weight: 700;
        color: #6c757d;
        text-transform: uppercase;
        display: block;
        margin-bottom: 4px;
    }

.trade-amount-input {
    border: none;
    outline: none;
    font-size: 2rem;
    font-weight: 800;
    width: 100%;
    color: #212529;
}

.trade-switch-container {
    padding: 16px;
    border-radius: 16px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-summary-card {
    border-radius: 20px;
    background: #f8f9fa;
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.summary-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid rgba(0,0,0,0.05);
    font-weight: 800;
    font-size: 1.1rem;
}

.acorns-btn {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
}

.acorns-range::-webkit-slider-thumb {
    background: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.acorns-range::-moz-range-thumb {
    background: #28a745 !important;
}

.acorns-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 6px rgba(40, 167, 69, 0.2) !important;
}
.convert-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 4px 32px rgba(0,0,0,0.07);
    border: 1px solid #f0f0f0;
}

.asset-picker-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f7f8fa;
    border-radius: 0.85rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: border-color 0.2s;
    position: relative;
}

    .asset-picker-box:hover:not(.static) {
        border-color: #45ac49;
        background: #f0faf0;
    }

    .asset-picker-box.static {
        cursor: default;
    }

.asset-icon-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    flex-shrink: 0;
}

    .asset-icon-sm.sm {
        width: 28px;
        height: 28px;
    }

.asset-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border-radius: 0.85rem;
    overflow: hidden;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #eee;
}

.asset-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
}

    .asset-dropdown-item:hover {
        background: #f0faf0;
    }

.btn-swap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e8f7e8;
    border: none;
    color: #45ac49;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(69, 172, 73, 0.15);
}

    .btn-swap:hover {
        background: #45ac49;
        color: white;
        transform: rotate(180deg);
    }

.amount-box {
    background: #f7f8fa;
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid transparent;
    transition: border-color 0.2s;
}

    .amount-box:has(.amount-input:focus) {
        border-color: #45ac49;
        background: #f0faf0;
    }

    .amount-box.computed {
        background: #f7f8fa;
    }

.amount-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    width: 100%;
    padding: 0;
}

.amount-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.max-btn {
    background: transparent;
    border: 1.5px solid #45ac49;
    color: #45ac49;
    border-radius: 0.4rem;
    padding: 0.1rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

    .max-btn:hover {
        background: #45ac49;
        color: white;
    }

.convert-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #45ac49;
}

.extra-small {
    font-size: 0.78rem;
}
.tickets-card {
    border-radius: 1.25rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.tickets-table-header {
    display: grid;
    grid-template-columns: 100px 1fr 180px 140px 40px;
    background: #fafafa;
}

.ticket-row {
    display: grid;
    grid-template-columns: 100px 1fr 180px 140px 40px;
    align-items: center;
    cursor: pointer;
    transition: background 0.15s;
}

    .ticket-row:hover {
        background: #f7faf7;
    }

.ticket-filter-tabs {
    background: #f2f2f2;
    border-radius: 0.65rem;
    padding: 4px;
}

.ticket-tab {
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    padding: 0.4rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

    .ticket-tab.active {
        background: #45ac49;
        color: white;
        box-shadow: 0 2px 8px rgba(69,172,73,0.2);
    }

.ticket-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
}

    .ticket-badge.open {
        background: #e6f9e6;
        color: #2e7d32;
    }

    .ticket-badge.in-progress {
        background: #fff8e1;
        color: #f57f17;
    }

    .ticket-badge.closed {
        background: #f0f0f0;
        color: #616161;
    }

.btn-page {
    width: 32px;
    height: 32px;
    border-radius: 0.4rem;
    border: 1px solid #e0e0e0;
    background: white;
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

    .btn-page:hover:not(:disabled) {
        background: #f0faf0;
        border-color: #45ac49;
        color: #45ac49;
    }

    .btn-page.active {
        background: #45ac49;
        color: white;
        border-color: #45ac49;
    }

    .btn-page:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

@media (max-width: 767px) {
    .tickets-table-header {
        display: none;
    }

    .ticket-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 2px;
        row-gap: 4px;
    }

        .ticket-row > span:nth-child(1) {
            grid-column: 1;
            grid-row: 1;
            font-size: 0.8rem;
        }

        .ticket-row > span:nth-child(2) {
            grid-column: 1;
            grid-row: 2;
            font-weight: 600;
        }

        .ticket-row > span:nth-child(3) {
            display: none;
        }

        .ticket-row > span:nth-child(4) {
            grid-column: 2;
            grid-row: 1;
            text-align: right;
        }

        .ticket-row > span:nth-child(5) {
            grid-column: 2;
            grid-row: 2;
            text-align: right;
        }
}
.ticket-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #45ac49, #2e7d32);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ticket-input {
    border-radius: 0.65rem;
    border: 1.5px solid #e8e8e8;
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
}

    .ticket-input:focus {
        border-color: #45ac49;
        box-shadow: 0 0 0 3px rgba(69,172,73,0.12);
        background: #fff;
        outline: none;
    }

.extra-small {
    font-size: 0.78rem;
}