/* ==========================================================================
   MAIDEEN GROUP - Global Official Portal Stylesheet (Apple & Euro Minimalist)
   ========================================================================== */

:root {
    --bg-main: #ffffff;
    --bg-subtle: #f5f5f7;
    --bg-dark: #0a0a0c;
    --bg-card-dark: #141418;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-muted: #86868b;
    --color-blue: #0066cc;
    --color-blue-hover: #004bb5;
    --color-blue-light: #e8f2fc;
    --color-red: #e11d48;
    --color-red-light: #fff1f2;
    --color-red-border: #fecdd3;
    --color-green: #059669;
    --color-green-light: #ecfdf5;
    --color-green-border: #a7f3d0;
    --border-color: #d2d2d7;
    --border-light: #e5e5ea;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 48px rgba(0, 102, 204, 0.12);
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    --container-max: 1240px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.6;
    /* No overflow clipping on body: any value other than `visible` turns it into
       a scroll container (breaking sticky) or propagates `clip` to the viewport
       (breaking page scrolling). Layout is overflow-free by design instead. */
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Top Notice Banner (Official Warning & Legal Announcement)
   ========================================================================== */
.top-notice-bar {
    background: linear-gradient(90deg, #991b1b, #b91c1c, #991b1b);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    z-index: 100;
}

.top-notice-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.notice-lead {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.notice-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Collapsible toggle — mobile only */
.notice-toggle {
    display: none;
}

.notice-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Short summary used only inside the mobile card */
.notice-brief {
    display: none;
}

.notice-text {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.notice-link:hover {
    opacity: 0.85;
}

/* ==========================================================================
   Header & Sticky Navigation (Glassmorphic)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: inline-block;
    transition: transform 0.2s ease;
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.04);
}

.brand-title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #000000;
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
    width: max-content;
}

.brand-title > span:first-child {
    display: block;
    white-space: nowrap;
}

.brand-tag {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--color-blue);
    display: block;
    width: 100%;
    text-align: justify;
    text-align-last: justify;
    text-justify: inter-character;
    margin-top: 3px;
    line-height: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
}

.nav-item a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    padding: 6px 0;
}

.nav-item a:hover,
.nav-item.active a {
    color: var(--color-blue);
}

.nav-item.active a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-blue);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    background: var(--bg-subtle);
    padding: 4px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

.lang-btn {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 16px;
    color: var(--text-secondary);
}

.lang-btn.active {
    background: #ffffff;
    color: var(--color-blue);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.btn-verify-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-red-light);
    color: var(--color-red);
    border: 1px solid var(--color-red-border);
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.btn-verify-header:hover {
    background: var(--color-red);
    color: #ffffff;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    background: radial-gradient(circle at top center, #1a202c, #0a0a0c 80%);
    color: #ffffff;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 50px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero-title span {
    background: linear-gradient(135deg, #ffffff 40%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 19px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 40px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--color-blue);
    color: #ffffff;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.4);
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background-color: var(--color-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.6);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.stat-num small {
    font-size: 18px;
    color: #60a5fa;
    margin-left: 2px;
}

.stat-label {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 4px;
}

/* ==========================================================================
   Verification Engine Card (Interactive Fraud Checking Box)
   ========================================================================== */
.verify-section {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.verify-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.verify-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.verify-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.verify-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--color-blue-light);
    color: var(--color-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.verify-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.verify-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.verify-form, .verify-input-group {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
}

.verify-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    height: 52px;
    background: #ffffff;
    border: 1.5px solid #c3cfdd;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-shadow:
        inset 0 2px 4px rgba(15, 23, 42, 0.07),
        0 1px 0 rgba(255, 255, 255, 0.9);
    background-image: linear-gradient(180deg, #f9fbfd 0%, #ffffff 34%);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.verify-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.verify-input:hover {
    border-color: #94a3b8;
}

.verify-input:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
    background: #ffffff;
    background-image: none;
}

.verify-btn {
    height: 52px;
    background: var(--color-blue);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 0 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

.verify-btn:hover {
    background: var(--color-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.35);
}

.verify-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.verify-presets {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    margin-top: 12px;
}

.preset-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
}

.preset-tag, .preset-chip {
    display: inline-flex;
    align-items: center;
    background: var(--bg-subtle);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.preset-tag:hover, .preset-chip:hover {
    border-color: var(--color-blue);
    color: var(--color-blue);
    transform: translateY(-1px);
}

.preset-tag.preset-safe, .preset-chip.safe {
    color: #059669;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.preset-tag.preset-safe:hover, .preset-chip.safe:hover {
    background: #d1fae5;
    border-color: #34d399;
}

.preset-tag.preset-danger, .preset-chip.danger {
    color: var(--color-red);
    background: var(--color-red-light);
    border-color: var(--color-red-border);
}

.preset-tag.preset-danger:hover, .preset-chip.danger:hover {
    background: #ffe4e6;
    border-color: #fb7185;
}
    border-color: var(--color-red-border);
}

/* Verification Result Box */
.verify-result-box {
    display: none;
    padding: 20px;
    border-radius: var(--radius-md);
    animation: fadeIn 0.3s ease;
}

.verify-result-box.official {
    display: block;
    background: var(--color-green-light);
    border: 1px solid var(--color-green-border);
    color: #065f46;
}

.verify-result-box.warning {
    display: block;
    background: var(--color-red-light);
    border: 1px solid var(--color-red-border);
    color: #9f1239;
}

.verify-result-box.unknown {
    display: block;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

/* ==========================================================================
   Section Headers (Apple Typography)
   ========================================================================== */
.section {
    padding: 80px 0;
}

.section-bg-subtle {
    background-color: var(--bg-subtle);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

.section-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ==========================================================================
   Bento Grid: Core Engineering Advantages (3 Columns)
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bento-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #bfdbfe;
}

.bento-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-blue-light);
    color: var(--color-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.bento-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-blue);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.bento-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.bento-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   Product Grid (1:1 Ratio, Minimal Clean, Micro Selling Points)
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #bfdbfe;
}

.product-img-box {
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    position: relative;
    background-color: #fafafa;
    overflow: hidden;
}

.product-img-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-box img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.product-selling-points {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.point-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.point-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--color-blue);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
    margin-top: auto;
}

.btn-view-detail {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-blue);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.official-guarantee-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-green);
    background: var(--color-green-light);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ==========================================================================
   Modern High-End Zigzag Alternating Center Timeline (About Us)
   ========================================================================= */
.timeline-center-wrapper {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
    padding: 30px 0;
}

.timeline-center-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: linear-gradient(180deg, var(--color-blue) 0%, #bfdbfe 50%, rgba(0, 102, 204, 0.1) 100%);
}

.timeline-zigzag-item {
    position: relative;
    width: 50%;
    margin-bottom: 24px;
    padding: 0 36px;
    box-sizing: border-box;
}

.timeline-zigzag-item.left-item {
    left: 0;
    text-align: right;
}

.timeline-zigzag-item.right-item {
    left: 50%;
    text-align: left;
}

.timeline-zigzag-dot {
    position: absolute;
    top: 24px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid var(--color-blue);
    box-shadow: 0 0 0 4px var(--color-blue-light);
    z-index: 2;
}

.timeline-zigzag-item.left-item .timeline-zigzag-dot {
    right: -11px;
}

.timeline-zigzag-item.right-item .timeline-zigzag-dot {
    left: -11px;
}

.timeline-zigzag-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 22px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-align: left;
}

.timeline-zigzag-item.left-item .timeline-zigzag-card:hover {
    transform: translateX(-6px);
    box-shadow: var(--shadow-md);
    border-color: #bfdbfe;
}

.timeline-zigzag-item.right-item .timeline-zigzag-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-color: #bfdbfe;
}

.timeline-year-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    color: var(--color-blue);
    background: var(--color-blue-light);
    padding: 2px 10px;
    border-radius: 14px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.timeline-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.timeline-card-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ==========================================================================
   Left Big / Right Switchable Thumbs Gallery (About Us & Home)
   ========================================================================== */
.gallery-showcase-box {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 24px;
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #e2e8f0;
    aspect-ratio: 16 / 11;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.75) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gallery-zoom-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.gallery-main-viewport {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #0a0a0c;
    aspect-ratio: 16 / 10;
    cursor: pointer;
}

.gallery-main-viewport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.gallery-main-viewport:hover img {
    transform: scale(1.03);
}

.gallery-main-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.gallery-main-title {
    font-size: 18px;
    font-weight: 700;
}

.gallery-thumb-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 6px;
}

.gallery-thumb-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-thumb-item:hover {
    background: #ffffff;
    border-color: #bfdbfe;
}

.gallery-thumb-item.active {
    background: #ffffff;
    border-color: var(--color-blue);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.gallery-thumb-img {
    width: 90px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
}

.gallery-thumb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    animation: fadeIn 0.25s ease;
}

.lightbox-modal.open {
    display: flex !important;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-caption {
    position: absolute;
    bottom: 24px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 20px;
    border-radius: 20px;
}

/* ==========================================================================
   Full-Width Smooth Marquee (Certificates / Patents) - Slower 65s Speed
   ========================================================================== */
.marquee-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-main), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-main), transparent);
}

.marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: marquee 65s linear infinite; /* Smooth slow animation */
}

.marquee-track:hover {
    animation-play-state: paused;
}

.honor-item {
    width: 220px;
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.honor-img-box {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    margin-bottom: 8px;
}

.honor-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.honor-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Official Announcement Paper Styled Box (Anti-Counterfeiting)
   ========================================================================== */
.official-paper-document {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 2px solid #fecdd3;
    box-shadow: 0 12px 32px rgba(225, 29, 72, 0.08);
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.official-paper-document::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #991b1b, #e11d48, #991b1b);
}

.official-paper-header {
    text-align: center;
    border-bottom: 2px solid #ffe4e6;
    padding-bottom: 24px;
    margin-bottom: 30px;
}

.official-paper-body {
    font-size: 15px;
    color: #334155;
    line-height: 1.85;
}

.official-paper-body p {
    margin-bottom: 16px;
}

.official-paper-body h3 {
    font-size: 18px;
    font-weight: 800;
    color: #991b1b;
    margin-top: 24px;
    margin-bottom: 12px;
}

.official-paper-body blockquote {
    background: #fff1f2;
    border-left: 4px solid #e11d48;
    padding: 16px 20px;
    border-radius: 6px;
    margin: 16px 0;
    font-size: 14px;
}

/* ==========================================================================
   Forms & Contact Elements
   ========================================================================== */
.form-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
    background: #ffffff;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ==========================================================================
   Product Detail Page (4-Column Detail Cards, Micro Badges)
   ========================================================================== */
.detail-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 60px;
}

.detail-gallery {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fafafa;
    border: 1px solid var(--border-light);
}

.detail-main-img {
    width: 100%;
    padding-top: 100%;
    position: relative;
}

.detail-main-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-badge-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-official {
    background: var(--color-green-light);
    color: var(--color-green);
    border: 1px solid var(--color-green-border);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.detail-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
}

.detail-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.detail-selling-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 10px 0;
}

.detail-selling-item {
    background: var(--bg-subtle);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-blue);
}

.detail-selling-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.detail-selling-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* 4-Column Detail Cards */
.detail-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.detail-card-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: #fafafa;
    aspect-ratio: 1 / 1;
}

.detail-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.detail-card-img:hover img {
    transform: scale(1.06);
}

/* Rich text container */
.rich-content-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 40px;
    line-height: 1.8;
}

.rich-content-box p {
    margin-bottom: 16px;
}

/* ==========================================================================
   Floating Live Support Widget (Vertical Centered)
   ========================================================================== */
.floating-support-bar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.support-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    font-size: 20px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.support-btn:hover {
    transform: scale(1.08);
    background: var(--color-blue);
    color: #ffffff;
}

.support-btn.whatsapp-btn:hover {
    background: #25d366;
}

.support-btn.verify-floating-btn {
    background: var(--color-red-light);
    color: var(--color-red);
    border-color: var(--color-red-border);
}

.support-btn.verify-floating-btn:hover {
    background: var(--color-red);
    color: #ffffff;
}

/* Popover QR Code */
.qr-popover {
    display: none;
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    width: 180px;
    text-align: center;
}

.support-btn:hover .qr-popover {
    display: block;
}

.qr-popover img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 6px;
}

.qr-popover-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==========================================================================
   Footer (Clean, ICP Compliant, Multi-Domain Verification)
   ========================================================================== */
.site-footer {
    background-color: var(--bg-dark);
    color: #a1a1a6;
    padding: 80px 0 40px;
    font-size: 14px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 50px;
    margin-bottom: 40px;
}

.footer-brand-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 13px;
}

.footer-col-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 13.5px;
    line-height: 1.45;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links li a i {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-links li a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.social-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.social-link-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    transition: background 0.2s ease;
    position: relative;
}

.social-link-btn:hover {
    background: var(--color-blue);
}

.footer-wechat-wrapper {
    position: relative;
    display: inline-block;
}

.footer-wechat-popover {
    display: none;
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    padding: 14px;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-light);
    width: 170px;
    text-align: center;
    z-index: 120;
    color: var(--text-primary);
}

.footer-wechat-popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

.footer-wechat-wrapper:hover .footer-wechat-popover {
    display: block;
    animation: fadeIn 0.2s ease;
}

.footer-wechat-popover img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 6px;
}

.footer-wechat-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-wechat-num {
    font-size: 11px;
    color: var(--color-blue);
    font-weight: 600;
    margin-top: 2px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
}

.footer-beian-link {
    color: #86868b;
}

.footer-beian-link:hover {
    color: #ffffff;
}

/* ==========================================================================
   Mobile Drawer Navigation (layered, tactile, with active state)
   ========================================================================== */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    background: rgba(2, 6, 23, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.mobile-drawer.open {
    display: block !important;
    animation: drawerFade 0.25s ease;
}

.mobile-drawer-panel {
    width: min(86vw, 352px);
    max-width: 352px;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    border-radius: 0 22px 22px 0;
    box-shadow: 24px 0 60px rgba(2, 6, 23, 0.35);
    overflow: hidden;
    animation: drawerSlide 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    border-bottom: 1px solid #e6ecf3;
    box-shadow: 0 1px 0 #ffffff inset;
}

.mobile-drawer-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.mobile-drawer-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.12));
}

.mobile-drawer-brand-text {
    min-width: 0;
}

.mobile-drawer-name {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: #0f172a;
    line-height: 1.2;
}

.mobile-drawer-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--color-blue);
    margin-top: 2px;
}

.mobile-drawer-close {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff, #f1f5f9);
    color: #334155;
    font-size: 15px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1), 0 1px 0 #ffffff inset;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mobile-drawer-close:active {
    transform: scale(0.94);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15) inset;
}

/* Anti-fraud CTA inside the drawer */
.drawer-verify-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 9px 12px 0;
    padding: 8px 11px;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.32), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.drawer-verify-btn:active {
    transform: translateY(1px);
    box-shadow: 0 5px 12px rgba(37, 99, 235, 0.28);
}

.drawer-verify-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.drawer-verify-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.drawer-verify-text strong {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.1px;
    line-height: 1.3;
}

.drawer-verify-text em {
    font-style: normal;
    font-size: 10.5px;
    font-weight: 600;
    opacity: 0.85;
    margin-top: 2px;
    line-height: 1.3;
}

.drawer-verify-arrow {
    font-size: 11px;
    opacity: 0.8;
    flex-shrink: 0;
}

/* Menu list */
.drawer-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 12px 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    /* Hide the scrollbar chrome but keep the list scrollable on short screens */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.drawer-nav::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.drawer-item {
    --tone: #2563eb;
    --tone-soft: #dbeafe;
    position: relative;
    display: flex;
    align-items: center;
    /* Grow to fill tall screens, but never shrink below a comfortable 41px target */
    flex: 1 1 auto;
    min-height: 41px;
    max-height: 56px;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 11px;
    border: 1px solid #e8edf4;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    box-shadow: 0 1px 0 #ffffff inset, 0 3px 8px rgba(15, 23, 42, 0.05);
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.drawer-item:active {
    transform: translateY(1px) scale(0.995);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12) inset;
}

.drawer-item-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--tone);
    background: linear-gradient(180deg, var(--tone-soft) 0%, #ffffff 100%);
    border: 1px solid var(--tone-soft);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 1px 0 #ffffff inset;
}

.drawer-item-label {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drawer-item-arrow {
    font-size: 11px;
    color: #94a3b8;
    flex-shrink: 0;
}

.drawer-item-current {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--tone) 0%, #1e40af 100%);
    color: #ffffff;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35);
}

.drawer-item.is-active {
    color: #1d4ed8;
    border-color: var(--tone-soft);
    background: linear-gradient(180deg, #eff6ff 0%, var(--tone-soft) 100%);
    box-shadow:
        inset 3px 0 0 0 var(--tone),
        0 8px 18px rgba(37, 99, 235, 0.18),
        0 1px 0 #ffffff inset;
}

.drawer-item.is-active .drawer-item-icon {
    color: #ffffff;
    background: linear-gradient(180deg, var(--tone) 0%, #1e40af 100%);
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3), 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.drawer-item--blue   { --tone: #2563eb; --tone-soft: #dbeafe; }
.drawer-item--indigo { --tone: #4f46e5; --tone-soft: #e0e7ff; }
.drawer-item--slate  { --tone: #475569; --tone-soft: #e2e8f0; }
.drawer-item--cyan   { --tone: #0891b2; --tone-soft: #cffafe; }
.drawer-item--emerald{ --tone: #059669; --tone-soft: #d1fae5; }
.drawer-item--amber  { --tone: #d97706; --tone-soft: #fef3c7; }
.drawer-item--violet { --tone: #7c3aed; --tone-soft: #ede9fe; }
.drawer-item--rose   { --tone: #e11d48; --tone-soft: #ffe4e6; }
.drawer-item--red    { --tone: #e11d48; --tone-soft: #ffe4e6; }
.drawer-item--teal   { --tone: #0d9488; --tone-soft: #ccfbf1; }

/* Drawer footer */
.drawer-foot {
    flex-shrink: 0;
    padding: 8px 12px 8px;
    border-top: 1px solid #eef2f7;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 -6px 16px rgba(15, 23, 42, 0.04);
}

.drawer-phone {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 7px 10px;
    margin-bottom: 6px;
    border-radius: 11px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.drawer-phone i {
    color: var(--color-blue);
    font-size: 12px;
}

.drawer-phone-hint {
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    border-radius: 999px;
    padding: 2px 7px;
    line-height: 1.4;
}

.drawer-phone-arrow {
    margin-left: auto;
    color: #94a3b8 !important;
    font-size: 10px !important;
}

.drawer-lang-switch {
    width: 100%;
    justify-content: center;
}

/* Short screens (iPhone SE / small Androids): tighten the drawer so it still fits */
@media (max-height: 700px) {
    .drawer-verify-btn {
        margin: 8px 12px 0;
        padding: 7px 10px;
        gap: 9px;
    }

    .drawer-verify-icon {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .drawer-verify-text em {
        display: none;
    }

    .drawer-nav {
        padding: 6px 12px 4px;
        gap: 3px;
    }

    .drawer-item {
        min-height: 38px;
    }

    .drawer-item-icon {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .drawer-foot {
        padding: 6px 12px 6px;
    }

    .drawer-phone {
        padding: 6px 10px;
        margin-bottom: 6px;
    }
}

@keyframes drawerSlide {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes drawerFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-showcase-box {
        grid-template-columns: 1fr;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .hero-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-grid,
    .product-grid,
    .detail-hero,
    .detail-cards-grid,
    .footer-top {
        grid-template-columns: 1fr;
    }
    .timeline-center-wrapper::before {
        left: 20px;
        transform: none;
    }
    .timeline-zigzag-item {
        width: 100% !important;
        left: 0 !important;
        padding-left: 50px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    .timeline-zigzag-dot {
        left: 9px !important;
        right: auto !important;
    }
    .verify-form, .verify-input-group {
        flex-direction: column;
    }
    .verify-btn {
        width: 100%;
    }

    /* Keep the header pinned while the page scrolls */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 120;
    }

    /* iOS zooms the page when an input font is below 16px */
    .verify-input {
        font-size: 16px;
        height: 48px;
        flex: 0 0 auto;
        padding: 0 14px;
        border-radius: 11px;
    }

    /* Long labels must not blow a button up to 3-4 lines */
    main a[class*="btn"],
    main button[class*="btn"],
    .verify-btn {
        height: auto !important;
        min-height: 44px;
        max-height: 68px;
        padding: 11px 16px !important;
        font-size: 13.5px !important;
        line-height: 1.35 !important;
        white-space: normal;
        text-align: center;
        border-radius: 11px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    main a[class*="btn"] > span,
    main button[class*="btn"] > span {
        display: inline;
        line-height: inherit;
    }

    /* Captcha + submit row: stack so nothing overflows the card */
    .verify-captcha-row {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .verify-captcha-row .verify-input {
        width: 100%;
        min-width: 0 !important;
        flex: 0 0 auto !important;
        height: 48px !important;
    }

    .verify-captcha-actions {
        width: 100%;
        flex-shrink: 1 !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 10px !important;
    }

    .verify-captcha-actions img {
        height: auto;
        width: auto;
        max-width: 200px;
        flex: 0 0 auto;
        align-self: flex-start;
    }

    .verify-captcha-actions .verify-btn {
        width: 100%;
        flex: 0 0 auto;
        min-width: 0;
        height: auto !important;
        min-height: 46px;
        max-height: none;
        /* Keep the label on one line now that the button owns the full row */
        white-space: nowrap !important;
        font-size: 14px !important;
        padding: 12px 14px !important;
        gap: 6px !important;
    }
    .floating-support-bar {
        display: none;
    }

    /* ---------- Official notice: compact collapsible card ---------- */
    .top-notice-bar {
        background: transparent;
        /* 12px gutter lives on the bar so the card can never exceed the viewport */
        padding: 10px 12px 0;
        font-size: 12.5px;
    }

    .top-notice-content {
        position: relative;
        display: block;
        width: 100%;
        margin: 0;
        padding: 10px 13px 9px !important;
        border-radius: 16px;
        color: #ffffff;
        background:
            radial-gradient(130% 150% at 100% 0%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 55%),
            linear-gradient(135deg, #7f1d1d 0%, #b91c1c 52%, #8f1a1a 100%);
        border: 1px solid rgba(255, 255, 255, 0.16);
        box-shadow: 0 16px 30px -20px rgba(127, 29, 29, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.14);
        overflow: hidden;
    }

    .top-notice-content::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 46%);
        pointer-events: none;
    }

    .notice-lead {
        display: block;
        overflow: visible;
    }

    .notice-badge {
        display: inline-flex;
        gap: 5px;
        margin-bottom: 5px;
        padding: 3px 9px;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.9px;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.26);
        border-radius: 999px;
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }

    /* Two-line clamp until the user expands the card */
    .notice-brief {
        display: block;
        position: relative;
        z-index: 1;
        font-size: 12.5px;
        line-height: 1.6;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.96);
    }

    .notice-text {
        display: none;
        -webkit-line-clamp: unset;
        white-space: normal;
        text-overflow: clip;
        font-size: 12.5px;
        line-height: 1.62;
        color: rgba(255, 255, 255, 0.9);
        position: relative;
        z-index: 1;
    }

    .top-notice-bar.is-expanded .notice-brief {
        display: none;
    }

    .top-notice-bar.is-expanded .notice-text {
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }

    .notice-actions {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: 7px;
        padding-top: 0;
        border-top: 0;
    }

    .notice-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 11px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 700;
        text-decoration: none;
        white-space: normal;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.16);
        border: 1px solid rgba(255, 255, 255, 0.24);
    }

    .notice-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        flex-shrink: 0;
        border-radius: 50%;
        cursor: pointer;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.16);
        border: 1px solid rgba(255, 255, 255, 0.26);
        transition: background 0.2s ease, transform 0.2s ease;
    }

    .notice-toggle:active {
        background: rgba(255, 255, 255, 0.28);
    }

    .notice-toggle i {
        transition: transform 0.25s ease;
    }

    .top-notice-bar.is-expanded .notice-toggle i {
        transform: rotate(180deg);
    }

    /* ---------- Mobile hardening ---------- */
    /* Header: anti-fraud button moves into the drawer */
    .btn-verify-header {
        display: none !important;
    }

    .header-inner {
        height: 64px;
        gap: 10px;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand-logo {
        gap: 8px;
        min-width: 0;
    }

    .brand-logo-img {
        height: 34px;
    }

    .brand-title {
        width: auto;
        min-width: 0;
        font-size: 15px;
    }

    .brand-title > span:first-child {
        white-space: normal;
    }

    .brand-tag {
        font-size: 8px;
        letter-spacing: 0;
        text-align: left;
        text-align-last: left;
    }

    .header-actions {
        gap: 8px;
        flex-shrink: 0;
    }

    .lang-btn {
        padding: 4px 9px;
        font-size: 11px;
    }

    /* Drawer: allow scrolling when many links + CTA */
    /* Footer: only brand block + bottom bar on mobile */
    .site-footer {
        padding: 36px 0 28px;
    }

    .footer-top {
        display: block;
        padding-bottom: 24px;
        margin-bottom: 20px;
    }

    .footer-col-links,
    .footer-col-verify,
    .footer-col-contact {
        display: none !important;
    }

    .footer-desc {
        font-size: 12.5px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        text-align: left;
        line-height: 1.6;
    }

    .footer-bottom > div {
        width: 100%;
    }

    /* Inline multi-column grids used across the page templates must stack */
    main [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    main [style*="min-width: 2"] {
        min-width: 0 !important;
    }

    main img {
        max-width: 100%;
    }

    .hero-section {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    /* The verification card must not overlap the hero stats on mobile */
    .verify-section {
        margin-top: 0;
    }

    .hero-stats {
        gap: 12px;
        padding-top: 28px;
    }

    .stat-num {
        font-size: 26px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .verify-card {
        padding: 22px 18px;
    }

    /* Large padded info/announcement cards need mobile-friendly padding,
       otherwise their inner text column is squeezed to ~170px */
    .announcement-card {
        padding: 20px !important;
    }

    .announcement-card-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 20px !important;
        border-radius: 12px !important;
    }

    .announcement-card h3,
    .announcement-card h2 {
        font-size: 18px !important;
    }

    .announcement-card .btn-primary {
        display: block;
        text-align: center;
        width: 100%;
    }

    /* CTA / info boxes declared with 40-60px padding inline */
    main [style*="padding: 60px;"],
    main [style*="padding: 40px;"] {
        padding: 24px !important;
    }

    main [style*="padding: 48px;"],
    main [style*="padding: 32px;"] {
        padding: 20px !important;
    }

    /* Long unbreakable strings (domains, account numbers) must not shrink a
       flex text column to a sliver, but words should only break when needed */
    main {
        overflow-wrap: break-word;
        word-break: normal;
    }

    .verify-icon {
        display: none;
    }

    /* Icon + text row: let the text column take the remaining width */
    main [style*="display: flex"][style*="align-items: flex-start"] > div:not([style*="flex-shrink: 0"]) {
        min-width: 0;
    }
}

/* Small phones (<= 380px): tighter gutters, smaller display type */
@media (max-width: 380px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .stat-num {
        font-size: 22px;
    }

    .stat-label {
        font-size: 11.5px;
    }

    .brand-title {
        font-size: 13px;
    }

    .lang-btn {
        padding: 4px 7px;
        font-size: 10px;
    }

    main h3 {
        font-size: 17px !important;
    }

    main [style*="flex-shrink: 0"] {
        flex-shrink: 1 !important;
    }
}

/* ==========================================================================
   Full-Width High-End Glassmorphic Cookie Consent Banner
   ========================================================================== */
.cookie-consent-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 18px 0;
    color: #ffffff;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s ease;
    display: none;
}

.cookie-consent-bar.active {
    display: block !important;
}

.cookie-consent-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 280px;
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.6;
}

.cookie-consent-text a {
    color: #60a5fa;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.cookie-consent-text a:hover {
    color: #93c5fd;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--color-blue);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-cookie-accept:hover {
    background: var(--color-blue-hover);
    transform: translateY(-1px);
}

.btn-cookie-decline {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-cookie-decline:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
