/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');

/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Sans Thai', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Touch-friendly buttons */
a,
button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Top Bar */
.top-bar {
    background-color: var(--bg-light);
    padding: 8px 0;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

.top-bar a {
    color: var(--text-dark);
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--secondary-color);
}

/* Logo */
.site-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    transform: scale(1.28);
    transform-origin: left center;
}

.logo-circle-footer {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #ffffff;
    background-image: url('../../images/SPL-Logo.png');
    background-size: 75%;
    background-repeat: no-repeat;
    background-position: center;
    border: 2px solid var(--border-color);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    overflow: visible;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}

.btn-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.25rem;
}

.btn-link:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    color: white;
    height: 400px;
    margin-bottom: 3rem;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 79, 175, 0.75);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 2;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
}

.btn-hero {
    padding: 12px 32px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
}

/* Category Cards */
.category-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-sm);
    background: white;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.category-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.category-card .no-picture-category {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px dashed #dee2e6;
}

.category-card-body {
    padding: 1.5rem;
    text-align: center;
}

.category-card h5 {
    font-weight: 600;
    color: var(--primary-color);
}

/* Product Card */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-image {
    position: relative;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.product-image img {
    width: 100%;
    height: 230px;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.no-picture {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px dashed #dee2e6;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-badge.bestseller {
    background: #f39c12;
}

.product-badge.new {
    background: #10b981;
}

/* Multi-Level Flyout Category Dropdown */
.category-flyout-dropdown {
    position: relative;
}

.category-flyout-dropdown .dropdown-menu {
    border-radius: 12px;
    padding: 8px 0;
    min-width: 230px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.category-flyout-item {
    position: relative;
}

.category-flyout-item>.dropdown-item {
    padding: 9px 16px;
    font-size: 0.95rem;
    font-weight: 500;
}

.category-flyout-item:hover>.dropdown-item {
    background-color: #f1f5f9;
    color: var(--primary-color, #2563eb);
}

.category-flyout-item:hover>.category-flyout-submenu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.category-flyout-submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: -8px;
    min-width: 230px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    z-index: 1070;
    padding: 8px 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

@media (max-width: 768px) {
    .category-flyout-submenu {
        position: static;
        left: 0;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
        border-left: 3px solid var(--primary-color, #2563eb);
        padding-left: 8px;
        background: #f8fafc;
        border-radius: 0 0 8px 8px;
    }
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 95px;
    right: 32px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1079;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background-color: #0056b3;
    /* Darker primary */
    transform: scale(1.1) translateY(0);
    color: white;
}

/* Floating Facebook Messenger Chat Widget */
.floating-messenger-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1080;
}

.messenger-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.messenger-btn:hover {
    transform: scale(1.08);
    color: #ffffff;
}

.messenger-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 24px rgba(0, 114, 255, 0.4);
    position: relative;
    animation: messengerPulse 2s infinite;
}

.messenger-tooltip {
    background: #ffffff;
    color: #1e293b;
    padding: 8px 14px;
    border-radius: 12px;
    margin-right: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    font-size: 0.85rem;
    line-height: 1.25;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 1px solid #e2e8f0;
    animation: messengerTooltipShowBriefly 5s ease forwards 1s;
}

.messenger-btn:hover .messenger-tooltip {
    opacity: 1;
    transform: translateX(-4px);
    animation: none;
}

@keyframes messengerTooltipShowBriefly {
    0% {
        opacity: 0;
        transform: translateX(10px);
    }

    10% {
        opacity: 0.95;
        transform: translateX(0);
    }

    80% {
        opacity: 0.95;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(10px);
    }
}

@keyframes messengerPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 114, 255, 0.6);
    }

    70% {
        box-shadow: 0 0 0 16px rgba(0, 114, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 114, 255, 0);
    }
}

@media (max-width: 576px) {
    .floating-messenger-widget {
        bottom: 20px;
        right: 15px;
    }

    .messenger-icon-circle {
        width: 52px;
        height: 52px;
        font-size: 26px;
    }

    .messenger-tooltip {
        display: none;
    }

    .back-to-top-btn {
        right: 18px;
    }
}

.product-body {
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-body>a:first-of-type {
    flex-grow: 1;
}


.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.product-old-price {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.product-rating {
    color: #f39c12;
    font-size: 0.9rem;
}

.btn-add-cart {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: var(--secondary-color);
    color: white;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-add-cart:hover {
    background: #2980b9;
}

/* Section Title */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Product Detail */
.product-detail-wrap {
    align-items: flex-start;
}

.detail-main-image-wrap {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    height: 520px;
}

.detail-main-image {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: contain;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.detail-main-image:hover {
    transform: scale(1.02);
}

.detail-no-image {
    width: 100%;
    height: 520px;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.detail-thumb-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.detail-thumb-btn {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    padding: 0;
    overflow: hidden;
}

.detail-thumb-btn img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    padding: 4px;
    display: block;
}

.detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.detail-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.detail-price {
    font-size: 2rem;
    line-height: 1;
    color: var(--accent-color);
    font-weight: 700;
}

.detail-old-price {
    color: var(--text-light);
    text-decoration: line-through;
}

.detail-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
}

.detail-spec-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.detail-spec-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.detail-spec-list li:last-child {
    border-bottom: 0;
}

/* Footer */
.footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.footer h5,
.footer h6 {
    color: var(--primary-color);
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {

    /* Top Bar - Hide on mobile */
    .top-bar {
        font-size: 0.75rem;
        padding: 6px 0;
    }

    .top-bar .col-md-6:last-child {
        display: none;
    }

    /* Navigation */
    .navbar-brand {
        font-size: 1.2rem;
    }

    .site-logo {
        width: 48px;
        height: 48px;
        transform: scale(1.18);
    }

    .btn-link {
        font-size: 1.1rem;
    }

    /* Hero Section */
    .hero-section {
        height: 320px;
    }


    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .hero-section p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        padding: 0 15px;
    }

    .btn-hero {
        padding: 10px 24px;
        font-size: 1rem;
    }

    /* Category Cards */
    .category-card img {
        height: auto;
    }

    .category-card-body {
        padding: 1rem;
    }

    .category-card h5 {
        font-size: 0.95rem;
    }

    .category-card-body i {
        font-size: 1.5rem !important;
    }

    /* Product Cards */
    .product-image img {
        height: 180px;
    }

    .detail-main-image,
    .detail-no-image {
        height: 420px;
    }

    .product-body {
        padding: 1rem;
    }

    .product-title {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 1.2rem;
    }

    .product-old-price {
        font-size: 0.85rem;
    }

    .btn-add-cart {
        padding: 8px;
        font-size: 0.9rem;
    }

    /* Section Title */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Footer */
    .footer {
        font-size: 0.9rem;
    }

    .footer .col-md-4,
    .footer .col-md-2,
    .footer .col-md-3 {
        margin-bottom: 2rem;
    }
}

/* Extra Small Devices */
@media (max-width: 576px) {
    .hero-section {
        height: 280px;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section p {
        font-size: 0.85rem;
    }

    .btn-hero {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .detail-title {
        font-size: 1.5rem;
    }

    .detail-main-image,
    .detail-no-image {
        height: 320px;
    }

    .detail-thumb-btn img {
        height: 72px;
    }

    /* Product Cards - 2 columns on very small screens */
    .product-image img {
        height: 150px;
    }

    .product-title {
        font-size: 0.85rem;
    }
}

/* Large Tablets */
@media (min-width: 769px) and (max-width: 991px) {
    .hero-section {
        height: 380px;
    }

    .hero-section h1 {
        font-size: 2.3rem;
    }

    .product-image img {
        height: 220px;
    }
}

/* Address page — clean, full container */
.address-page {
    --addr-brand: #3db5de;
    --addr-muted: #6c757d;
}

.address-page .addr-section {
    margin-bottom: 1.5rem;
}

.address-page .addr-section:last-of-type {
    margin-bottom: 0;
}

.address-page .addr-parse {
    margin-bottom: 1.5rem;
    padding: 1rem 1.125rem;
    border: 1.5px dashed #b8d9e8;
    border-radius: 0.875rem;
    background: #f4fafc;
}

.address-page .addr-parse .form-label {
    font-weight: 600;
    color: #2c3e50;
}

.address-page .addr-parse textarea {
    background: #fff;
    border-color: #d7e8ef;
}

.address-page .addr-parse textarea:focus {
    border-color: #7ec0d8;
    box-shadow: 0 0 0 0.2rem rgba(30, 132, 153, 0.12);
}

.address-page .addr-parse-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.address-page .addr-parse-feedback {
    font-size: 0.875rem;
    color: var(--addr-muted);
}

.address-page .addr-tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.address-page .addr-tag-option {
    margin: 0;
    cursor: pointer;
}

.address-page .addr-tag-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.address-page .addr-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #495057;
    background: #fff;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
    user-select: none;
}

.address-page .addr-tag-input:checked+.addr-tag-pill {
    color: #fff;
    border-color: var(--addr-brand);
    background: var(--addr-brand);
}

.address-page .addr-field label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
}

.address-page .addr-map-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.address-page .addr-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.address-page .addr-map-actions .btn {
    font-size: 0.875rem;
}

.address-page [data-map-pin] {
    height: 280px !important;
    border-radius: 0.375rem !important;
    border: 1px solid #dee2e6 !important;
    overflow: hidden;
}

.address-page [data-map-status] {
    font-size: 0.875rem;
    color: var(--addr-muted);
    margin-top: 0.5rem;
}

.address-page .addr-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.address-page .addr-card--default {
    box-shadow: 0 0 0 1px var(--addr-brand) !important;
}

.address-page .addr-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.address-page .addr-badge--tag {
    color: #0c6f8f;
    background: #e8f7fc;
}

.address-page .addr-badge--default {
    color: #fff;
    background: var(--addr-brand);
}

.address-page .addr-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0.75rem 0 0.25rem;
}

.address-page .addr-card-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--addr-muted);
    margin: 0 0 1rem;
}

.address-page .addr-card-actions .btn {
    font-size: 0.875rem;
}

@media (min-width: 992px) {
    .address-page [data-map-pin] {
        height: 320px !important;
    }
}

.member-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e9f5ff;
    color: #1e8499;
    font-weight: 700;
    line-height: 1;
}

.member-avatar-nav {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
}

.member-account-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    line-height: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.member-account-trigger::after {
    display: none !important;
}

.member-account-trigger:hover,
.member-account-trigger:focus,
.member-account-trigger.show {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(30, 132, 153, 0.18);
}

.member-account-trigger .member-avatar-nav {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(30, 132, 153, 0.12);
}

.member-account-trigger:hover .member-avatar-nav,
.member-account-trigger:focus .member-avatar-nav,
.member-account-trigger.show .member-avatar-nav {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(30, 132, 153, 0.28);
}

.member-avatar-md {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
}

.member-avatar-lg {
    width: 72px;
    height: 72px;
    font-size: 1.6rem;
}

.member-avatar-fallback {
    border: 1px solid #cfe8f3;
}

.member-account-menu {
    min-width: 260px;
}

.account-address-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid #cfe8f3;
    border-radius: 0.5rem;
    background: #f7fcfe;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.account-address-btn:hover {
    border-color: #3db5de;
    background: #eef9fc;
    color: inherit;
}

.account-address-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
    background: #3db5de;
    color: #fff;
    font-size: 1.25rem;
}

.account-address-btn__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.account-address-btn__title {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

.account-address-btn__desc {
    font-size: 0.875rem;
    color: #6c757d;
}

.account-address-btn__arrow {
    flex-shrink: 0;
    color: #adb5bd;
    font-size: 1.1rem;
}

.account-address-btn:hover .account-address-btn__arrow {
    color: #3db5de;
}


/* Modern Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: none;
    box-shadow: none;
    display: inline-flex;
}

.breadcrumb-item {
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "\F285";
    /* bootstrap icon chevron-right */
    font-family: "bootstrap-icons";
    font-size: 0.8rem;
    color: #adb5bd;
    padding: 0 0.75rem;
    float: none;
}

/* Error / Maintenance pages */
.error-page {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 5rem;
    background:
        radial-gradient(ellipse 70% 55% at 12% 18%, rgba(52, 152, 219, 0.14), transparent 60%),
        radial-gradient(ellipse 55% 45% at 92% 82%, rgba(44, 62, 80, 0.07), transparent 55%),
        linear-gradient(180deg, #f7fafc 0%, #ffffff 55%, #f8f9fa 100%);
}

.error-page__inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    animation: error-page-rise 0.55s ease both;
}

@keyframes error-page-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.error-page__visual {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    margin-bottom: 1.25rem;
}

.error-page__code {
    position: relative;
    z-index: 1;
    font-size: clamp(4.5rem, 12vw, 6.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error-page__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 28px;
    background: rgba(52, 152, 219, 0.12);
    color: var(--secondary-color);
    font-size: 2.5rem;
}

.error-page__orbit {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px dashed rgba(52, 152, 219, 0.35);
    animation: error-page-spin 18s linear infinite;
}

.error-page__orbit::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.18);
}

@keyframes error-page-spin {
    to {
        transform: rotate(360deg);
    }
}

.error-page__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(44, 62, 80, 0.06);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.error-page__eyebrow--live {
    background: rgba(52, 152, 219, 0.12);
    color: var(--secondary-color);
}

.error-page__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary-color);
    animation: error-page-pulse 1.4s ease infinite;
}

@keyframes error-page-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

.error-page__title {
    margin-bottom: 0.85rem;
    font-size: clamp(1.55rem, 3.5vw, 2.1rem);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.35;
}

.error-page__lead {
    margin: 0 auto 1.75rem;
    max-width: 34rem;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.75;
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.error-page__search {
    max-width: 480px;
    margin: 0 auto;
}

.error-page__search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.error-page__search-row .form-control {
    flex: 1 1 220px;
    min-height: 46px;
    border-radius: 10px;
}

.error-page__search-row .btn {
    flex: 0 0 auto;
    min-height: 46px;
    border-radius: 10px;
}

.error-page__meta {
    margin: 0;
    color: var(--text-light);
    font-size: 0.92rem;
}

.error-page__meta a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.error-page__meta a:hover {
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .error-page {
        padding: 3rem 0 3.5rem;
    }

    .error-page__visual {
        width: 140px;
        height: 140px;
    }

    .error-page__search-row .btn {
        width: 100%;
    }
}