:root {
    --page-bg: #f3f4f6;
    --surface: #ffffff;
    --surface-solid: #ffffff;
    --surface-muted: #f6f7f9;
    --text: #111827;
    --text-muted: #4b5563;
    --border: #d7dde5;
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --accent: #0f766e;
    --success: #059669;
    --danger: #dc2626;
    --warning: #f59e0b;
    --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
    --shadow-card: 0 6px 18px rgba(15, 23, 42, 0.05);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

html { scroll-behavior: smooth; }

body {
    color: var(--text);
    background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 18px 14px 24px;
}

body[data-brand-id] {
    color: var(--text) !important;
    background: var(--page-bg) !important;
}

body[data-brand-id] .container {
    width: min(100%, 960px);
    max-width: 960px !important;
    margin: 0 auto !important;
    padding: 18px 14px 24px !important;
}

body[data-brand-id] header {
    padding: 8px 0 10px !important;
    text-align: center;
}

body[data-brand-id] .tagline,
body[data-brand-id] footer {
    color: var(--text-muted) !important;
}

body[data-brand-id] .footer-links a {
    color: #475569 !important;
}

body[data-brand-id] .footer-links a:hover {
    color: var(--primary) !important;
    text-decoration: none !important;
}

body[data-brand-id] .hero,
body[data-brand-id] .content-section {
    background: var(--surface-solid) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-card) !important;
    padding: 28px !important;
    margin-bottom: 18px !important;
}

body[data-brand-id] .hero {
    position: relative;
    overflow: hidden;
    padding: 30px 28px !important;
}

body[data-brand-id] .hero:has(.brand-header) {
    max-width: 720px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 18px !important;
    border-radius: 32px !important;
    background: var(--surface-solid) !important;
    border-color: var(--border) !important;
    box-shadow: var(--shadow-soft) !important;
}

body[data-brand-id] .brand-header {
    text-align: center;
    margin-bottom: 18px !important;
}

body[data-brand-id] .brand-name {
    color: var(--text) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.035em !important;
}

body[data-brand-id] .hero:has(.brand-header) .brand-category {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin-top: 6px !important;
    padding: 4px 10px !important;
    border: 1px solid var(--border) !important;
    border-radius: 999px !important;
    background: var(--surface-muted) !important;
    color: var(--text-muted) !important;
    font-size: 0.78rem !important;
    font-weight: 700;
}

body[data-brand-id] .hero .info-box {
    padding: 12px 13px !important;
    margin-bottom: 10px !important;
    border: 1px solid var(--border) !important;
    border-left: 1px solid var(--border) !important;
    border-radius: 20px !important;
    background: var(--surface-muted) !important;
    box-shadow: none !important;
}

body[data-brand-id] .hero .info-box h3 {
    color: var(--primary-dark) !important;
    margin-bottom: 6px !important;
    font-size: 0.92rem !important;
    letter-spacing: -0.02em !important;
}

body[data-brand-id] .hero .info-box p {
    margin-bottom: 4px !important;
    color: #475569 !important;
    font-size: 0.86rem !important;
    line-height: 1.45 !important;
}

body[data-brand-id] .hero .brand-header ~ .form-group {
    margin-bottom: 10px !important;
    padding: 10px !important;
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

body[data-brand-id] .hero .brand-header ~ .form-group label {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    color: #475569 !important;
    font-size: 0.84rem !important;
    letter-spacing: -0.015em !important;
    margin-bottom: 6px !important;
}

body[data-brand-id] .hero .brand-header ~ .form-group input[type="text"] {
    min-height: 46px;
    padding: 10px 12px !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    color: var(--text) !important;
    font-size: 0.96rem !important;
    box-shadow: none !important;
}

body[data-brand-id] .hero .brand-header ~ .form-group input[type="text"]:focus {
    border-color: rgba(29, 78, 216, 0.72) !important;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12) !important;
}

body[data-brand-id] .hero .brand-header ~ .btn-check {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border: none !important;
    border-radius: 16px !important;
    background: var(--primary) !important;
    color: #ffffff !important;
    font-size: 0.96rem !important;
    letter-spacing: -0.01em !important;
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.18) !important;
}

body[data-brand-id] .hero .brand-header ~ .error-message {
    padding: 10px 12px !important;
    margin-top: 10px !important;
    border-radius: 12px !important;
    font-size: 0.86rem !important;
}

body[data-brand-id] .hero .brand-header ~ .result-card {
    padding: 12px !important;
    margin-top: 10px !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05) !important;
    overflow: hidden;
}

body[data-brand-id] .hero .brand-header ~ .result-card .result-header {
    gap: 10px;
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
    border-bottom-color: rgba(148, 163, 184, 0.22) !important;
}

body[data-brand-id] .hero .brand-header ~ .result-card .result-grid {
    gap: 8px;
}

body[data-brand-id] .hero .brand-header ~ .result-card .result-item {
    padding: 10px !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
    box-shadow: none !important;
}

header {
    padding: 8px 0 10px;
}

.logo {
    color: var(--text);
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 4px;
}

.logo a {
    color: inherit !important;
    text-decoration: none;
}

.site-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-logo-img {
    display: block;
    width: min(300px, 82vw);
    height: auto;
    aspect-ratio: 300 / 56;
}

.logo-icon,
.logo > span:first-child {
    filter: none;
}

.tagline {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin: 0;
}

.hero,
.popular-brands,
.info-section,
.faq-section,
.content-card,
.content-section {
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: 28px;
    margin-bottom: 18px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 30px 28px;
}

.hero:has(.brand-header) {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding: 18px;
    border-radius: 32px;
    background: var(--surface-solid);
    border-color: var(--border);
    box-shadow: var(--shadow-soft);
}

.hero::before,
.content-card::before {
    content: none;
    display: none;
}

.hero-title,
.content-card h1,
.brand-name {
    color: var(--text);
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.brand-header {
    text-align: center;
    margin-bottom: 18px;
}

.hero:has(.brand-header) .brand-header {
    margin-bottom: 12px;
    padding: 4px 8px 0;
}

.brand-name {
    font-size: clamp(1.5rem, 4vw, 1.9rem);
    margin-bottom: 3px;
}

.hero:has(.brand-header) .brand-name {
    font-size: clamp(1.42rem, 4vw, 1.82rem);
    letter-spacing: -0.045em;
}

.brand-category {
    font-size: 0.92rem;
    line-height: 1.35;
}

.hero:has(.brand-header) .brand-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin-top: 6px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.hero .info-box {
    padding: 14px 16px;
    margin-bottom: 14px;
}

.hero:has(.brand-header) .info-box {
    padding: 12px 13px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-left: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface-muted);
    box-shadow: none;
}

.hero .info-box h3 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.hero:has(.brand-header) .info-box h3 {
    margin-bottom: 6px;
    font-size: 0.92rem;
    letter-spacing: -0.02em;
}

.hero .info-box p {
    margin-bottom: 6px;
    line-height: 1.5;
}

.hero:has(.brand-header) .info-box p {
    margin-bottom: 4px;
    color: #475569;
    font-size: 0.86rem;
    line-height: 1.45;
}

.hero .brand-header ~ .form-group {
    margin-bottom: 10px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.hero:has(.brand-header) .brand-header ~ .form-group {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.hero .brand-header ~ .form-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.84rem;
    margin-bottom: 6px;
    color: #475569;
    letter-spacing: -0.015em;
}

.hero .brand-header ~ .form-group input[type="text"] {
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    background: #ffffff;
    font-size: 0.96rem;
    box-shadow: none;
}

.hero .brand-header ~ .form-group input[type="text"]:focus {
    border-color: rgba(29, 78, 216, 0.72);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.hero .brand-header ~ .btn-check {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 16px;
    font-size: 0.96rem;
    letter-spacing: -0.01em;
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.18);
}

.hero .brand-header ~ .btn-check:hover {
    box-shadow: 0 8px 18px rgba(30, 64, 175, 0.2);
}

.hero .brand-header ~ .error-message {
    padding: 10px 12px;
    margin-top: 10px;
    border-radius: 12px;
    font-size: 0.86rem;
}

.hero .brand-header ~ .result-card {
    padding: 12px;
    margin-top: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.hero .brand-header ~ .result-card.active {
    display: block;
    animation: appResultReveal 520ms cubic-bezier(0.2, 0.9, 0.22, 1) both;
    transform-origin: top center;
}

.hero .brand-header ~ .result-card.active .result-item {
    animation: appResultItemReveal 420ms cubic-bezier(0.2, 0.9, 0.22, 1) both;
}

.hero .brand-header ~ .result-card.active .result-item:nth-child(2) { animation-delay: 35ms; }
.hero .brand-header ~ .result-card.active .result-item:nth-child(3) { animation-delay: 70ms; }
.hero .brand-header ~ .result-card.active .result-item:nth-child(4) { animation-delay: 105ms; }
.hero .brand-header ~ .result-card.active .result-item:nth-child(5) { animation-delay: 140ms; }
.hero .brand-header ~ .result-card.active .result-item:nth-child(6) { animation-delay: 175ms; }

@keyframes appResultReveal {
    0% { opacity: 0; transform: translateY(14px) scale(0.985); }
    58% { opacity: 1; transform: translateY(-2px) scale(1.004); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes appResultItemReveal {
    0% { opacity: 0; transform: translateY(8px) scale(0.985); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .hero .brand-header ~ .result-card.active,
    .hero .brand-header ~ .result-card.active .result-item {
        animation: none;
    }
}

.hero .brand-header ~ .result-card .result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom-color: rgba(148, 163, 184, 0.22);
}

.hero .brand-header ~ .result-card .result-status {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.hero .brand-header ~ .result-card .result-status.valid {
    background: #d4edda;
    color: #155724;
}

.hero .brand-header ~ .result-card .result-status.expired {
    background: #f8d7da;
    color: #721c24;
}

.hero .brand-header ~ .result-card .result-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.hero .brand-header ~ .result-card .result-subtitle {
    color: #666;
    font-size: 0.9rem;
}

.hero .brand-header ~ .result-card .result-grid {
    gap: 8px;
}

.hero .brand-header ~ .result-card .result-item {
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: none;
}

.hero .brand-header ~ .result-card .result-item label {
    font-size: 0.76rem;
    margin-bottom: 3px;
}

.hero .brand-header ~ .result-card .result-item .value {
    font-size: 0.98rem;
    letter-spacing: -0.02em;
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 2.7rem);
    margin-bottom: 8px;
}

.hero-subtitle,
.brand-category,
.content-card .subtitle,
.content-card .last-updated {
    color: var(--text-muted);
}

.hero-subtitle,
.content-card .subtitle {
    margin-bottom: 18px;
}

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

.brand-code-hint {
    margin-top: 8px;
    padding: 9px 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.88);
    color: #536173;
    font-size: 0.84rem;
    line-height: 1.45;
}

.brand-code-hint strong {
    color: var(--text);
    font-weight: 650;
}

label {
    color: #263244;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}

.select-trigger,
input[type="text"],
.select-search input {
    min-height: 54px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-muted);
    color: var(--text);
    font-size: 16px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.select-trigger:hover,
.select-trigger.active,
input[type="text"]:focus,
.select-search input:focus {
    border-color: rgba(29, 78, 216, 0.72);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.select-trigger::after {
    color: var(--primary);
}

.select-dropdown {
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.select-search { background: #ffffff; }

.select-option {
    min-height: 48px;
    border-radius: 12px;
    margin: 4px 8px;
}

.select-option:hover {
    background: var(--surface-muted);
}

.select-option.selected {
    background: var(--primary);
    color: #ffffff;
}

.select-empty-state {
    margin: 8px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
    text-align: left;
}

.select-empty-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.select-empty-text {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.select-empty-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 18px rgba(30, 64, 175, 0.14);
}

.select-empty-link:hover {
    background: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

.select-empty-link:focus-visible {
    outline: 2px solid rgba(29, 78, 216, 0.28);
    outline-offset: 2px;
}

.btn-check,
.brand-logo,
.brand-link .logo {
    background: var(--primary);
    color: #ffffff;
}

.btn-check {
    min-height: 56px;
    border-radius: 18px;
    font-size: 1.05rem;
    box-shadow: 0 8px 18px rgba(30, 64, 175, 0.16);
}

.btn-check:hover {
    background: var(--primary-dark);
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.18);
}

.btn-check:active {
    transform: scale(0.99);
}

.result-card {
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    padding: 20px;
    margin-top: 14px;
}

.result-header {
    display: flex;
    align-items: center;
    border-bottom-color: var(--border);
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
}

.result-status {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

@media (min-width: 760px) {
    .result-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.result-status.valid {
    background: #d4edda;
    color: #155724;
}

.result-status.expired {
    background: #f8d7da;
    color: #721c24;
}

.result-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}

.result-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.result-item,
.feature-item,
.contact-method,
.faq-item,
.info-box,
.highlight-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
}

.result-item {
    min-width: 0;
}

.result-item .value {
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.info-box,
.faq-item {
    margin-bottom: 12px;
}

.result-item .value.date,
.content-card h2,
.faq-question,
.faq-item h4,
.contact-method a,
.back-link {
    color: var(--primary);
}

.result-item .value.valid { color: var(--success); }
.result-item .value.expired { color: var(--danger); }

.section-title,
.info-section h2,
.faq-section h2,
.content-section h2,
.content-card h1,
.contact-method h3,
.feature-item h3 {
    color: var(--text);
    letter-spacing: -0.025em;
    margin-bottom: 12px;
}

.brands-grid {
    gap: 12px;
}

.contact-methods,
.feature-grid {
    gap: 16px;
    margin: 18px 0;
}

.content-card h2,
.content-section h2 {
    margin: 22px 0 12px;
}

.content-card p,
.content-section p,
.info-section p,
.faq-answer,
.contact-method p,
.feature-item p {
    margin-bottom: 12px;
}

.content-card li,
.content-section li,
.info-section li {
    margin-bottom: 8px;
}

.info-section-showcase {
    overflow: hidden;
}

.info-section-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: 18px;
    align-items: stretch;
}

.info-section-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-section-copy ul,
.info-section-copy p:last-child {
    margin-bottom: 0;
}

.info-section-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.batch-code-showcase {
    position: relative;
    width: min(100%, 332px);
    aspect-ratio: 1 / 1;
    min-height: 296px;
    overflow: hidden;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.batch-code-showcase::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 18px;
    background: rgba(246, 247, 249, 0.92);
    box-shadow: inset 0 0 0 1px rgba(215, 221, 229, 0.9);
    z-index: 0;
}

.batch-code-showcase::after {
    content: none;
    display: none;
}

.batch-code-showcase-image {
    position: absolute;
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: contain;
    object-position: center;
    border-radius: 18px;
    opacity: 0;
    transform: scale(1.01);
    background: #ffffff;
    transition: opacity 520ms ease, transform 3600ms ease;
    z-index: 1;
}

.batch-code-showcase-image.is-active {
    opacity: 1;
    transform: scale(1);
}

.cta-box {
    padding: 24px;
    margin-top: 20px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: var(--shadow-card);
}

.cta-box h2,
.cta-box h3,
.cta-box p {
    color: inherit;
}

.brand-link {
    min-height: 58px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.brand-link:hover {
    background: var(--surface-muted);
    color: var(--text);
    border-color: rgba(30, 64, 175, 0.3);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.brand-link:hover .logo {
    background: var(--primary-dark);
    color: #ffffff;
}

.brand-link .logo {
    margin-bottom: 0;
    font-size: 0.65rem;
}

.info-box {
    border-left: 0;
    box-shadow: none;
}

.info-box h3 { color: var(--primary-dark); }

.error-message {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 16px;
}

.cta-btn {
    background: var(--primary);
    color: #ffffff;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(30, 64, 175, 0.16);
}

footer {
    color: var(--text-muted);
    text-align: center;
}

.footer-disclaimer {
    margin-top: 10px;
    font-size: 0.85rem;
}

.footer-links a {
    color: #475569;
}

.footer-links a:hover {
    color: var(--primary);
    text-decoration: none;
}

.discover-brands {
    margin-top: 18px;
}

.discover-brands-head p {
    color: var(--text-muted);
    max-width: 760px;
}

.discover-brands-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.discover-brand-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    background: #ffffff;
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.discover-brand-card:hover {
    transform: translateY(-2px);
    border-color: rgba(29, 78, 216, 0.35);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
    text-decoration: none;
}

.discover-brand-name {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.discover-brand-category {
    color: var(--text-muted);
    font-size: 0.82rem;
}

@media (max-width: 600px) {
    body {
        background: var(--page-bg);
    }

    body[data-brand-id] {
        background: var(--page-bg) !important;
    }

    .container {
        max-width: 540px;
        padding: 4px 3px 10px;
    }

    body[data-brand-id] .container {
        width: min(100%, 540px);
        max-width: 540px !important;
        margin: 0 auto !important;
        padding: 4px 3px 10px !important;
    }

    header {
        margin: 0 -3px 3px;
        padding: calc(3px + env(safe-area-inset-top)) 7px 3px;
        background: #ffffff;
        border-bottom: 1px solid var(--border);
    }

    body[data-brand-id] header {
        margin: 0 -3px 3px;
        padding: calc(3px + env(safe-area-inset-top)) 7px 3px !important;
        background: #ffffff !important;
        border-bottom: 1px solid var(--border) !important;
    }

    .logo {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }

    .site-logo-img {
        width: min(198px, 64vw);
    }

    .tagline {
        font-size: 0.68rem;
        line-height: 1.18;
    }

    .hero,
    .popular-brands,
    .info-section,
    .faq-section,
    .content-card,
    .content-section {
        border-radius: 14px;
        padding: 10px;
        margin-bottom: 8px;
        box-shadow: 0 5px 12px rgba(15, 23, 42, 0.04);
    }

    body[data-brand-id] .hero,
    body[data-brand-id] .content-section {
        border-radius: 14px !important;
        padding: 10px !important;
        margin-bottom: 8px !important;
        box-shadow: 0 5px 12px rgba(15, 23, 42, 0.04) !important;
    }

    .hero:has(.brand-header) {
        max-width: none;
        padding: 8px;
        border-radius: 18px;
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
    }

    body[data-brand-id] .hero:has(.brand-header) {
        max-width: none;
        padding: 8px !important;
        border-radius: 18px !important;
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05) !important;
    }

    .hero::before,
    .content-card::before {
        content: none;
        display: none;
    }

    .hero-title {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }

    .brand-header {
        margin-bottom: 8px;
    }

    .hero:has(.brand-header) .brand-header {
        margin-bottom: 6px;
        padding-top: 1px;
    }

    .brand-name {
        font-size: 1.08rem;
        margin-bottom: 2px;
    }

    .hero:has(.brand-header) .brand-name {
        font-size: 1.04rem;
        line-height: 1.12;
    }

    .brand-category {
        font-size: 0.72rem;
    }

    .hero:has(.brand-header) .brand-category {
        min-height: 20px;
        margin-top: 3px;
        padding: 2px 7px;
        font-size: 0.66rem;
    }

    .hero .info-box {
        padding: 8px 9px;
        margin-bottom: 7px;
        border-radius: 12px;
    }

    body[data-brand-id] .hero .info-box {
        padding: 7px 8px !important;
        margin-bottom: 6px !important;
        border-radius: 13px !important;
    }

    .hero:has(.brand-header) .info-box {
        padding: 7px 8px;
        margin-bottom: 6px;
        border-radius: 13px;
    }

    .hero .info-box h3 {
        font-size: 0.86rem;
        margin-bottom: 4px;
    }

    .hero:has(.brand-header) .info-box h3 {
        font-size: 0.78rem;
        margin-bottom: 3px;
    }

    .hero .info-box p {
        font-size: 0.74rem;
        margin-bottom: 3px;
        line-height: 1.35;
    }

    .hero:has(.brand-header) .info-box p {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .hero .brand-header ~ .form-group {
        margin-bottom: 6px;
        padding: 7px;
        border-radius: 13px;
    }

    body[data-brand-id] .hero .brand-header ~ .form-group {
        margin-bottom: 6px !important;
        padding: 7px !important;
        border-radius: 13px !important;
    }

    .hero .brand-header ~ .form-group label {
        font-size: 0.72rem;
        margin-bottom: 4px;
    }

    .hero .brand-header ~ .form-group input[type="text"] {
        min-height: 38px;
        padding: 7px 9px;
        border-radius: 11px;
        font-size: 0.82rem;
    }

    body[data-brand-id] .hero .brand-header ~ .form-group input[type="text"] {
        min-height: 38px;
        padding: 7px 9px !important;
        border-radius: 11px !important;
        font-size: 0.82rem !important;
    }

    .hero .brand-header ~ .btn-check {
        min-height: 40px;
        border-radius: 12px;
        font-size: 0.82rem;
        box-shadow: 0 7px 14px rgba(37, 99, 235, 0.16);
    }

    body[data-brand-id] .hero .brand-header ~ .btn-check {
        min-height: 40px;
        border-radius: 12px !important;
        font-size: 0.82rem !important;
        box-shadow: 0 7px 14px rgba(37, 99, 235, 0.16) !important;
    }

    .hero .brand-header ~ .error-message {
        padding: 8px 10px;
        margin-top: 8px;
        border-radius: 10px;
        font-size: 0.74rem;
    }

    body[data-brand-id] .hero .brand-header ~ .error-message {
        padding: 8px 10px !important;
        margin-top: 8px !important;
        border-radius: 10px !important;
        font-size: 0.74rem !important;
    }

    .hero .brand-header ~ .result-card {
        padding: 7px;
        margin-top: 6px;
        border-radius: 14px;
    }

    body[data-brand-id] .hero .brand-header ~ .result-card {
        padding: 7px !important;
        margin-top: 6px !important;
        border-radius: 14px !important;
    }

    .hero .brand-header ~ .result-card .result-header {
        gap: 8px;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .hero .brand-header ~ .result-card .result-status {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .hero .brand-header ~ .result-card .result-title {
        font-size: 0.88rem;
    }

    .hero .brand-header ~ .result-card .result-subtitle {
        font-size: 0.7rem;
    }

    .hero .brand-header ~ .result-card .result-grid {
        gap: 6px;
    }

    .hero .brand-header ~ .result-card .result-item {
        padding: 7px;
        border-radius: 12px;
    }

    .hero .brand-header ~ .result-card .result-item label {
        font-size: 0.68rem;
        margin-bottom: 2px;
    }

    .hero .brand-header ~ .result-card .result-item .value {
        font-size: 0.84rem;
    }

    .hero-subtitle {
        font-size: 0.74rem;
        line-height: 1.35;
        margin-bottom: 8px;
    }

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

    .brand-code-hint {
        margin-top: 6px;
        padding: 7px 8px;
        border-radius: 10px;
        font-size: 0.72rem;
        line-height: 1.32;
    }

    label {
        font-size: 0.76rem;
        margin-bottom: 3px;
    }

    .select-trigger,
    input[type="text"],
    .btn-check {
        min-height: 42px;
        border-radius: 12px;
        font-size: 0.84rem;
    }

    .select-trigger,
    input[type="text"] {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .select-dropdown {
        border-radius: 14px;
        max-height: 260px;
    }

    .select-search {
        padding: 6px;
    }

    .select-option {
        min-height: 38px;
        margin: 2px 4px;
        padding: 7px 9px;
    }

    .select-empty-state {
        margin: 6px 4px;
        padding: 10px;
        border-radius: 12px;
    }

    .select-empty-text {
        margin-bottom: 10px;
        font-size: 0.8rem;
    }

    .select-empty-link {
        width: 100%;
        min-height: 38px;
        border-radius: 10px;
        font-size: 0.82rem;
    }

    .btn-check {
        min-height: 42px;
    }

    .brands-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .brand-link {
        min-height: 42px;
        padding: 6px;
        border-radius: 12px;
    }

    .brand-link span {
        font-size: 0.72rem;
    }

    .section-title,
    .info-section h2,
    .faq-section h2,
    .content-section h2,
    .content-card h1 {
        font-size: 0.98rem;
        margin-bottom: 7px;
    }

    .info-section-layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .batch-code-showcase {
        width: 100%;
        min-height: 232px;
        border-radius: 18px;
        padding: 8px;
    }

    .batch-code-showcase::before {
        inset: 8px;
        border-radius: 14px;
    }

    .batch-code-showcase::after {
        content: none;
        display: none;
    }

    .batch-code-showcase-image {
        inset: 8px;
        width: calc(100% - 16px);
        height: calc(100% - 16px);
        border-radius: 14px;
    }

    .info-section p,
    .info-section li,
    .faq-answer,
    .content-section p,
    .content-section li,
    .content-card p,
    .content-card li {
        font-size: 0.78rem;
        line-height: 1.42;
    }

    .result-card {
        padding: 10px;
        margin-top: 8px;
        border-radius: 14px;
    }

    .result-header {
        gap: 8px;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .result-status {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .result-title {
        font-size: 0.94rem;
    }

    .result-subtitle {
        font-size: 0.74rem;
    }

    .result-grid {
        gap: 6px;
    }

    .result-item {
        padding: 7px;
        border-radius: 14px;
    }

    .feature-item,
    .contact-method,
    .faq-item,
    .info-box,
    .highlight-box,
    .cta-box {
        padding: 10px;
    }

    .contact-methods,
    .feature-grid {
        gap: 10px;
        margin: 10px 0;
    }

    .result-grid,
    .discover-brands-grid,
    .contact-methods,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .content-card p,
    .content-section p,
    .content-section li {
        margin-bottom: 7px;
    }

    .discover-brands {
        margin-top: 8px;
    }

    .discover-brands-head p {
        font-size: 0.72rem;
        line-height: 1.35;
        margin-bottom: 0;
    }

    .discover-brands-grid {
        gap: 6px;
        margin-top: 8px;
    }

    .discover-brand-card {
        gap: 2px;
        padding: 8px 10px;
        border-radius: 12px;
    }

    .discover-brand-name {
        font-size: 0.82rem;
    }

    .discover-brand-category {
        font-size: 0.68rem;
    }

    footer {
        padding-top: 4px;
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .footer-disclaimer {
        margin-top: 6px;
        font-size: 0.68rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .batch-code-showcase-image {
        transition: none;
    }

    .batch-code-showcase-image:not(.is-active) {
        display: none;
    }
}