:root {
    --primary-color: #0A2540;
    /* Deep Navy */
    --accent-color: #10B981;
    /* Emerald Green */
    --accent-hover: #059669;
    --text-color: #1F2937;
    /* Dark Gray */
    --text-light: #6B7280;
    /* Light Gray */
    --bg-color: #F3F4F6;
    /* Very Light Gray */
    --white: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 0.5rem;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 0;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-color);
}

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

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

main#content {
    flex: 1;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Header & Navigation */
.top-app-bar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.top-app-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.logo img {
    height: 32px;
    width: auto;
}

.desktop-nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.desktop-nav a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.desktop-nav a:hover {
    color: var(--accent-color);
}

.desktop-nav .cart-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    /* Pill shape */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.desktop-nav .cart-btn:hover {
    background-color: #1e3a8a;
    /* Slightly lighter navy */
    color: var(--white);
}

/* Mobile Nav */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.mobile-nav-container {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 250px;
    background-color: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 2rem;
}

.mobile-nav-container.active {
    transform: translateX(0);
}

.mobile-nav li {
    margin-bottom: 1.5rem;
}

.mobile-nav a {
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.btn-primary,
.button-primary-style {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover,
.button-primary-style:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary,
.button-secondary-style {
    background-color: var(--white);
    border-color: var(--border-color);
    color: var(--text-color);
}

.btn-secondary:hover,
.button-secondary-style:hover {
    background-color: #F9FAFB;
    border-color: #D1D5DB;
}

/* Cards */
.card,
.content-card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table th {
    background-color: #F9FAFB;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.tradelines-table tbody tr:hover {
    background-color: #F9FAFB;
}

.tradeline-table-image {
    height: 24px;
    width: auto;
    border-radius: 4px;
}



.disclaimer-section {
    background-color: #FEF2F2;
    /* Light red bg */
    border: 1px solid #FECACA;
    border-radius: var(--radius);
    padding: 1rem;
    margin: 1.5rem 0;
}

.disclaimer-section h3 {
    color: #991B1B;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.disclaimer-section p {
    color: #7F1D1D;
    font-size: 0.875rem;
    margin: 0;
}

.disclaimer-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.disclaimer-checkbox input[type="checkbox"] {
    width: auto;
    margin-bottom: 0;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.1);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

/* FAQ Accordion */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    background: var(--white);
    overflow: hidden;
}

.accordion-button {
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-button:hover {
    background-color: #F9FAFB;
}

.accordion-collapse {
    display: none;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
}

.accordion-item.active .accordion-collapse {
    display: block;
}

/* Hero Section (Index) */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    background-color: var(--white);
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Footer (if added later) */
footer {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
    color: var(--text-light);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Tradeline Container Grid */
#tradeline-container.tradeline-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Tradeline Cards - Credit Card Style */
.content-card {
    position: relative;
    aspect-ratio: 1.586 / 1;
    /* Standard Credit Card Ratio */
    max-width: 500px;
    /* Increased width for more content */
    margin: 0 auto;
    /* Center in grid cell if smaller */
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.6s ease-out, box-shadow 0.3s ease, opacity 0.6s ease-out;
    border: none;
    /* Remove border as image defines edge */
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay for readability */
    z-index: 1;
    transition: background 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.content-card:hover::before {
    background: rgba(0, 0, 0, 0.3);
    /* Lighten overlay on hover */
}

.content-card.unavailable {
    opacity: 0.5;
    filter: grayscale(100%);
    pointer-events: none;
    /* Disable interaction */
    cursor: not-allowed;
}

.content-card-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.card-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.card-bank-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
    line-height: 1.2;
    word-break: break-word;
}

.card-price-tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.card-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-top: auto;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.card-detail-item {
    display: flex;
    flex-direction: column;
}

.card-detail-label {
    font-size: 0.7rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.1rem;
}

.card-detail-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.1;
}

.card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.content-card:hover .card-actions {
    opacity: 1;
    transform: translateY(0);
}

.card-actions .btn {
    width: auto;
    min-width: 140px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.card-actions .btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.unavailable-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    border: 6px solid rgba(255, 255, 255, 0.9);
    padding: 1rem 2rem;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}


/* Checkout Page */
.checkout-page {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.checkout-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.disclaimer-text {
    font-size: 0.85rem;
    color: var(--text-light);
    background-color: #F9FAFB;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.cart-item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    background: var(--white);
}

.card-main-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-spinner-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.btn-icon:hover {
    background-color: #F3F4F6;
}

/* Card Animation */
.card-hidden {
    opacity: 0;
    transform: translateY(20px);
}

/* Authorized User Form Styling */
.authorized-user-form {
    background-color: #97d4bc;
    /* Slate 700 - Softer than primary navy */
    border: 1px solid #475569;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    box-shadow: var(--shadow-md);
    color: var(--primary-color);
}

.authorized-user-form h3 {
    grid-column: 1 / -1;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.75rem;
    margin-top: 0;
}

.authorized-user-form .form-group {
    margin-bottom: 0;
}

.authorized-user-form label {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
    font-weight: 600;
}

.authorized-user-form input[type="text"],
.authorized-user-form input[type="email"],
.authorized-user-form input[type="password"],
.authorized-user-form input[type="date"],
.authorized-user-form select {
    margin-bottom: 0;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
}

.authorized-user-form input.invalid-input {
    border: 2px solid #EF4444 !important;
    background-color: #FEF2F2 !important;
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Modern Hero Section (Home) */
.hero-section.modern-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a8a 100%);
    padding: 6rem 2rem;
    border-radius: 1rem;
    color: white;
    margin-bottom: 4rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section.modern-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-section.modern-hero h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-section.modern-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* Inverse Buttons for Dark Backgrounds */
.btn-primary-inverse {
    background-color: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-primary-inverse:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-outline-inverse {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-outline-inverse:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

@media (max-width: 768px) {
    .hero-section.modern-hero {
        padding: 4rem 1.5rem;
    }

    .hero-section.modern-hero h1 {
        font-size: 2.5rem;
    }
}

/* FAQ Page Styling */
.faq-page {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.faq-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a8a 100%);
    padding: 4rem 2rem;
    border-radius: 1rem;
    color: white;
    margin-bottom: 3rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.faq-hero h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.faq-hero .text-light {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.faq-search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.faq-search-container .search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.2rem;
    pointer-events: none;
}

.faq-search-container input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border-radius: 3rem;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.faq-search-container input:focus {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.faq-category {
    margin-bottom: 3rem;
    animation: fadeIn 0.5s ease-out;
}

.faq-category h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #E5E7EB;
    display: inline-block;
}

.accordion-item {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #D1D5DB;
    transform: translateY(-1px);
}

.accordion-item.active {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.accordion-button {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    background: white;
    border: none;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    transition: background-color 0.2s;
}

.accordion-button:hover {
    background-color: #F9FAFB;
}

.accordion-button .question-text {
    flex: 1;
    padding-right: 1rem;
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-collapse {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}

.accordion-item.active .accordion-collapse {
    grid-template-rows: 1fr;
}

.accordion-body {
    overflow: hidden;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1rem;
}

/* Inner padding wrapper for smooth animation */
.accordion-body-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid #F3F4F6;
    padding-top: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Checkout Improvements */
@media (max-width: 768px) {
    .cart-item-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.25rem;
    }

    .card-main-info {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .card-main-info .tradeline-table-image {
        height: 40px;
        /* Larger image for mobile */
        width: auto;
    }

    .card-main-info .bank-name {
        font-size: 1.1rem;
        font-weight: 700;
        line-height: 1.3;
        word-break: break-word;
    }

    .card-details {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        font-size: 0.9rem;
        background-color: #f9fafb;
        padding: 1rem;
        border-radius: var(--radius);
        border: 1px solid var(--border-color);
    }

    .card-details p {
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    .card-details p strong {
        font-size: 0.75rem;
        text-transform: uppercase;
        color: var(--text-light);
        margin-bottom: 0.1rem;
    }

    .price-quantity-group {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 0.5rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }

    .price {
        font-weight: 700;
        font-size: 1.25rem;
        color: var(--primary-color);
    }

    .quantity-spinner-card {
        background-color: #f3f4f6;
        padding: 0.25rem;
        border-radius: 0.5rem;
    }

    .quantity-spinner-card .quantity {
        font-weight: 600;
        min-width: 1.5rem;
        text-align: center;
    }
}

.authorized-user-form input:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    outline: none;
}

.authorized-user-form .password-toggle-group {
    position: relative;
    display: flex;
    align-items: center;
}

.authorized-user-form .password-toggle-group input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
}

.authorized-user-form .password-toggle-group .btn-icon {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: #000000;
    height: 100%;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.authorized-user-form .password-toggle-group .btn-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
}


/* Checkout Total Display */
.checkout-total-container {
    background-color: #F3F4F6;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #E5E7EB;
}

.checkout-total-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.checkout-total-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.checkout-total-currency {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-right: 0.1rem;
    vertical-align: baseline;
    letter-spacing: -0.02em;
}

/* Button Loading State */
.button-loading {
    cursor: not-allowed;
    opacity: 0.7;
}

.button-loading .spinner-border {
    display: inline-block !important;
    width: 1rem;
    height: 1rem;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.modal-body {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--white);
    color: var(--text-color);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border-left: 4px solid var(--primary-color);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: var(--accent-color);
}

.toast.error {
    border-left-color: #EF4444;
}

.toast.info {
    border-left-color: #3B82F6;
}

.toast-icon {
    font-size: 1.25rem;
}

.toast.success .toast-icon {
    color: var(--accent-color);
}

.toast.error .toast-icon {
    color: #EF4444;
}

.toast.info .toast-icon {
    color: #3B82F6;
}