:root {
    --primary: #d4a853;
    --primary-dark: #b8860b;
    --primary-light: #f0d68a;
    --primary-glow: rgba(212, 168, 83, 0.3);
    --primary-subtle: rgba(212, 168, 83, 0.15);
    --primary-border: rgba(212, 168, 83, 0.3);
    --bg-dark: #0f1119;
    --bg-card: #1a1d2e;
    --bg-card-hover: #222640;
    --bg-alt: #141722;
    --bg-overlay: rgba(255, 255, 255, 0.03);
    --bg-overlay-5: rgba(255, 255, 255, 0.05);
    --text: #e8e8e8;
    --text-muted: #8b8fa3;
    --text-dim: #5a5e72;
    --accent-green: #4ade80;
    --accent-green-bg: rgba(74, 222, 128, 0.15);
    --accent-green-border: rgba(74, 222, 128, 0.3);
    --accent-red: #f87171;
    --accent-red-bg: rgba(248, 113, 113, 0.15);
    --accent-red-border: rgba(248, 113, 113, 0.3);
    --accent-blue: #60a5fa;
    --accent-cyan: #22d3ee;
    --accent-cyan-bg: rgba(34, 211, 238, 0.1);
    --accent-cyan-hover: rgba(34, 211, 238, 0.2);
    --accent-purple: #a78bfa;
    --border: #2a2d3e;
    --border-subtle: rgba(42, 45, 62, 0.5);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-pill: 50px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-primary: 0 4px 20px var(--primary-glow);
    --shadow-primary-lg: 0 8px 30px rgba(212, 168, 83, 0.4);
    --shadow-primary-xl: 0 8px 30px rgba(212, 168, 83, 0.5);
    --transition: 0.3s ease;
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    --max-width: 1200px;
    --header-height: 70px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
}
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 10px);
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: var(--font-family);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}
a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--primary-light);
}
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
strong {
    font-weight: 700;
}
code {
    font-family: var(--font-mono);
}
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #fff;
}
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}
.hidden {
    display: none !important;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.gold {
    color: var(--primary);
}
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    color: var(--text);
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--primary);
    box-shadow: 0 10px 40px rgba(212, 168, 83, 0.2);
    z-index: 10000;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all var(--transition-bounce);
    pointer-events: none;
    white-space: nowrap;
    max-width: 90vw;
    text-align: center;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 17, 25, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}
.logo:hover {
    color: var(--text);
}
.logo-icon {
    font-size: 28px;
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
}
.logo-text {
    letter-spacing: -0.5px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-link:hover {
    color: var(--text);
    background: rgba(212, 168, 83, 0.08);
}
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}
.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}
.mobile-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
.breadcrumb {
    background: var(--bg-dark);
    padding: calc(var(--header-height) + 8px) 0 0;
    font-size: 13px;
}
.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px 0 0;
    align-items: center;
}
.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 4px;
}
.breadcrumb-list li::after {
    content: '›';
    color: var(--text-dim);
    font-size: 16px;
    margin-left: 4px;
}
.breadcrumb-list li:last-child::after {
    display: none;
}
.breadcrumb-list a {
    color: var(--text-dim);
    font-size: 13px;
    transition: color var(--transition);
}
.breadcrumb-list a:hover {
    color: var(--primary);
}
.breadcrumb-list li:last-child a {
    color: var(--primary);
    font-weight: 500;
}
.hero {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 168, 83, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(96, 165, 250, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(167, 139, 250, 0.06) 0%, transparent 50%);
    z-index: 0;
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a853' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-block;
    background: var(--primary-subtle);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid var(--primary-border);
    animation: fadeInDown 0.6s ease both;
}
.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #d4a853 50%, #f0d68a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease 0.1s both;
    letter-spacing: -1px;
}
.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
    animation: fadeInUp 0.6s ease 0.2s both;
    line-height: 1.7;
}
.hero-subtitle strong {
    color: var(--text);
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.35s both;
}
.stat {
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}
.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.45s both;
}
.quick-answer {
    background: var(--bg-card);
    border: 2px solid rgba(212, 168, 83, 0.4);
    border-radius: var(--radius-lg);
    padding: 24px 30px;
    text-align: left;
    margin: 30px auto;
    max-width: 650px;
    animation: fadeInUp 0.6s ease 0.25s both;
    position: relative;
    overflow: hidden;
}
.quick-answer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan), var(--primary));
}
.qa-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}
.qa-list {
    list-style: none;
    margin-bottom: 14px;
}
.qa-list li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.qa-list li:last-child {
    border-bottom: none;
}
.qa-list code {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--primary-light);
    font-size: 15px;
    letter-spacing: 1px;
    background: rgba(212, 168, 83, 0.1);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(212, 168, 83, 0.15);
}
.qa-total {
    font-size: 14px;
    color: var(--accent-green);
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-weight: 600;
}
.qa-total a {
    color: var(--accent-cyan);
    font-weight: 600;
}
.qa-total a:hover {
    color: var(--accent-cyan);
    text-decoration: underline;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
    font-family: var(--font-family);
    line-height: 1.4;
}
.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #1a1a1a;
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
    color: #1a1a1a;
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}
.update-banner {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}
.update-banner .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.update-banner strong {
    color: var(--accent-green);
}
.separator {
    margin: 0 12px;
    color: var(--border);
}
.section {
    padding: 80px 0;
}
.section-alt {
    background: var(--bg-alt);
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: -0.5px;
}
.section-header p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}
.codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}
.code-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.code-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
    opacity: 0;
    transition: opacity var(--transition);
}
.code-card:hover {
    border-color: var(--primary-border);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.code-card:hover::before {
    opacity: 1;
}
.code-card.expired {
    opacity: 0.6;
}
.code-card.expired::before {
    background: var(--accent-red);
}
.code-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 8px;
}
.code-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.code-status.active {
    background: var(--accent-green-bg);
    color: var(--accent-green);
}
.code-status.expired {
    background: var(--accent-red-bg);
    color: var(--accent-red);
}
.code-source {
    font-size: 12px;
    color: var(--text-dim);
    background: var(--bg-overlay-5);
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}
.code-value {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.code-text {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 2px;
    flex: 1;
    word-break: break-all;
    line-height: 1.3;
}
.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-subtle);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    font-family: var(--font-family);
}
.copy-btn:hover {
    background: rgba(212, 168, 83, 0.25);
    transform: scale(1.02);
}
.copy-btn:active {
    transform: scale(0.98);
}
.copy-btn.copied {
    background: var(--accent-green-bg);
    color: var(--accent-green);
    border-color: var(--accent-green-border);
}
.code-rewards {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-overlay);
    border-radius: 8px;
    line-height: 1.6;
}
.code-rewards strong {
    color: var(--text);
}
.code-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    gap: 8px;
}
.code-primo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-purple);
}
.code-version {
    font-size: 12px;
    color: var(--text-dim);
    margin-left: 8px;
}
.redeem-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-cyan);
    padding: 6px 14px;
    border-radius: 6px;
    background: var(--accent-cyan-bg);
    transition: all var(--transition);
    flex-shrink: 0;
}
.redeem-link:hover {
    background: var(--accent-cyan-hover);
    color: var(--accent-cyan);
}
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
}
.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    line-height: 1;
}
.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text);
}
.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.7;
}
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
    color: var(--text-muted);
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
.spinner.small {
    width: 20px;
    height: 20px;
    border-width: 2px;
    display: inline-block;
    margin: 0 8px 0 0;
    vertical-align: middle;
}
.loading-cell {
    text-align: center;
    padding: 40px !important;
    color: var(--text-dim);
}
.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.method-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: all var(--transition);
}
.method-card:hover {
    border-color: var(--primary-border);
    box-shadow: var(--shadow);
}
.method-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.method-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}
.method-header h3 {
    font-size: 18px;
    font-weight: 700;
    flex: 1;
    min-width: 150px;
}
.method-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--bg-overlay-5);
    color: var(--text-dim);
    flex-shrink: 0;
}
.method-badge.recommended {
    background: var(--accent-green-bg);
    color: var(--accent-green);
}
.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.steps-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #1a1a1a;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    margin-top: 2px;
    flex-shrink: 0;
}
.steps-list li > div {
    flex: 1;
}
.steps-list strong {
    display: block;
    font-size: 15px;
    margin-bottom: 3px;
    color: var(--text);
}
.steps-list p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}
.steps-list a {
    word-break: break-all;
}
.redeem-tips {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
}
.redeem-tips h3 {
    margin-bottom: 16px;
    font-size: 18px;
    color: var(--text);
}
.redeem-tips ul {
    list-style: none;
    display: grid;
    gap: 12px;
}
.redeem-tips li {
    position: relative;
    padding-left: 28px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}
.redeem-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-green);
    font-weight: 700;
    font-size: 15px;
}
.redeem-tips li strong {
    color: var(--text);
}
.content-section {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.seo-content {
    max-width: 800px;
    margin: 0 auto;
}
.seo-content h2 {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1.3;
}
.seo-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--primary);
}
.seo-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.seo-content p strong {
    color: var(--text);
}
.seo-content ul,
.seo-content ol {
    margin: 12px 0 20px 24px;
    color: var(--text-muted);
}
.seo-content li {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.7;
}
.seo-content li strong {
    color: var(--text);
}
.seo-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.archive-controls {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}
.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.5;
    pointer-events: none;
}
.search-box input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    font-family: var(--font-family);
    transition: all var(--transition);
}
.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}
.search-box input::placeholder {
    color: var(--text-dim);
}
.search-box input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px var(--bg-card) inset !important;
    -webkit-text-fill-color: var(--text) !important;
}
.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-btn {
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-family);
    white-space: nowrap;
}
.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.filter-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.filter-btn.active,
.filter-btn[aria-pressed="true"] {
    background: var(--primary-subtle);
    border-color: var(--primary);
    color: var(--primary);
}
.archive-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    -webkit-overflow-scrolling: touch;
}
.archive-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.archive-table thead {
    background: rgba(212, 168, 83, 0.06);
}
.archive-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary);
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 1;
}
.archive-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-muted);
    vertical-align: middle;
}
.archive-table tbody tr {
    transition: background var(--transition);
}
.archive-table tbody tr:hover {
    background: rgba(212, 168, 83, 0.04);
}
.archive-table tbody tr:last-child td {
    border-bottom: none;
}
.archive-table .code-cell {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text);
    letter-spacing: 1px;
    cursor: pointer;
    transition: color var(--transition);
    user-select: all;
}
.archive-table .code-cell:hover {
    color: var(--primary);
}
.archive-table .primo-cell {
    color: var(--accent-purple);
    font-weight: 600;
    white-space: nowrap;
}
.no-results {
    text-align: center;
    padding: 40px;
    color: var(--text-dim);
    font-size: 15px;
}
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.faq-item:hover {
    border-color: var(--primary-border);
}
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-family);
    transition: all var(--transition);
    gap: 16px;
    line-height: 1.5;
}
.faq-question:hover {
    color: var(--primary);
}
.faq-question:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}
.faq-toggle {
    font-size: 22px;
    font-weight: 300;
    color: var(--primary);
    transition: transform var(--transition);
    min-width: 24px;
    text-align: center;
    line-height: 1;
    flex-shrink: 0;
}
.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer {
    max-height: 400px;
}
.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}
.faq-answer a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.footer-brand .logo-icon {
    animation: none;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
    max-width: 320px;
    line-height: 1.7;
}
.footer-links h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 16px;
}
.footer-links a {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    padding: 5px 0;
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--primary);
}
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer-bottom p {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 6px;
    line-height: 1.7;
}
.footer-bottom a {
    color: var(--primary);
}
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #1a1a1a;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 100;
    box-shadow: var(--shadow-primary);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-primary-xl);
}
.back-to-top:active {
    transform: translateY(0);
}
.back-to-top:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.fade-in {
    animation: fadeInUp 0.5s ease both;
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .logo-icon {
        animation: none;
    }
}
.codes-summary-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 24px auto;
    max-width: 700px;
    font-size: 14px;
}
.codes-summary-table thead tr {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.15), rgba(212, 168, 83, 0.05));
}
.codes-summary-table th {
    padding: 12px 16px;
    text-align: left;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--primary-border);
}
.codes-summary-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-muted);
}
.codes-summary-table tbody tr:last-child td {
    border-bottom: none;
}
.codes-summary-table tbody tr:hover {
    background: var(--bg-overlay-5);
}
.codes-summary-table .code-col {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 0.5px;
    cursor: pointer;
}
.codes-summary-table .primo-col {
    color: var(--accent-cyan);
    font-weight: 600;
    white-space: nowrap;
}
.codes-summary-table tfoot td {
    padding: 12px 16px;
    font-weight: 700;
    color: var(--accent-green);
    background: rgba(74, 222, 128, 0.05);
    border-top: 2px solid var(--accent-green-border);
    border-bottom: none;
}
.author-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin: 40px auto;
    max-width: 800px;
    position: relative;
    overflow: hidden;
}
.author-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent-cyan));
}
.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    border: 2px solid var(--primary-border);
}
.author-info { flex: 1; min-width: 0; }
.author-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    font-weight: 600;
    margin-bottom: 4px;
}
.author-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.author-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 10px;
}
.author-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.author-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-overlay-5);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}
.author-badge.verified {
    background: var(--accent-green-bg);
    color: var(--accent-green);
    border-color: var(--accent-green-border);
}
.update-log {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin: 40px auto;
    max-width: 800px;
}
.update-log-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.update-log-list {
    list-style: none;
    position: relative;
    padding-left: 20px;
}
.update-log-list::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
}
.update-log-list li {
    position: relative;
    padding: 8px 0 8px 16px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}
.update-log-list li::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-card);
}
.update-log-list li:first-child::before {
    background: var(--accent-green);
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}
.update-log-date { font-weight: 600; color: var(--primary); margin-right: 4px; }
.update-log-list li strong { color: var(--text); }
.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 16px 24px;
    margin: 20px auto;
    max-width: 600px;
    background: var(--bg-overlay-5);
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
    animation: fadeInUp 0.6s ease 0.5s both;
}
.social-proof-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}
.social-proof-item strong { color: var(--text); font-weight: 700; }
.social-proof-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
}
.subpage-hero {
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.subpage-hero .hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 168, 83, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(96, 165, 250, 0.06) 0%, transparent 50%);
    z-index: 0;
}
.subpage-hero h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
}
.subpage-hero p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.content-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}
.content-article h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    color: var(--text);
    margin: 48px 0 16px;
}
.content-article h2:first-of-type { margin-top: 0; }
.content-article h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin: 32px 0 12px;
}
.content-article p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}
.content-article ul, .content-article ol {
    margin: 12px 0 20px 24px;
    color: var(--text-muted);
    line-height: 1.8;
}
.content-article li { margin-bottom: 8px; }
.content-article strong { color: var(--text); }
.content-article a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(212, 168, 83, 0.3);
    text-underline-offset: 3px;
}
.content-article a:hover { text-decoration-color: var(--primary); }
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 24px 0;
}
.info-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}
.version-timeline { position: relative; padding-left: 28px; }
.version-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.version-item { position: relative; margin-bottom: 32px; }
.version-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg-dark);
}
.version-item h3 { margin-top: 0; }
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.schedule-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all var(--transition);
}
.schedule-card:hover {
    border-color: var(--primary-border);
    transform: translateY(-2px);
}
.schedule-card .schedule-version { font-size: 20px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.schedule-card .schedule-date { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.schedule-card .schedule-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.schedule-card .schedule-status.upcoming { background: var(--accent-cyan-bg); color: var(--accent-cyan); }
.schedule-card .schedule-status.past { background: var(--bg-overlay-5); color: var(--text-dim); }
.schedule-card .schedule-status.live { background: var(--accent-green-bg); color: var(--accent-green); }
.cta-box {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.1), rgba(34, 211, 238, 0.05));
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    margin: 48px 0;
}
.cta-box h3 { font-size: 22px; font-weight: 700; color: var(--text); margin: 0 0 8px; }
.cta-box p { color: var(--text-muted); margin-bottom: 20px; }
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(15, 17, 25, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 20px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        z-index: 999;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-link {
        padding: 14px 20px;
        width: 100%;
        text-align: center;
        border-radius: 10px;
        font-size: 15px;
    }
    .mobile-toggle {
        display: flex;
    }
    .breadcrumb {
        padding-top: calc(var(--header-height) + 4px);
    }
    .breadcrumb-list {
        padding-top: 8px;
    }
    .hero {
        padding: 60px 0 50px;
        min-height: auto;
    }
    .hero h1 {
        font-size: clamp(30px, 7vw, 48px);
    }
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .hero-stats {
        gap: 24px;
        margin-bottom: 30px;
    }
    .stat-number {
        font-size: 28px;
    }
    .stat-label {
        font-size: 11px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        justify-content: center;
        max-width: 320px;
    }
    .quick-answer {
        padding: 20px;
        margin: 20px auto;
    }
    .qa-list code {
        font-size: 13px;
        letter-spacing: 0.5px;
    }
    .separator {
        display: none;
    }
    .update-banner .container {
        flex-direction: column;
        gap: 2px;
    }
    .section {
        padding: 60px 0;
    }
    .section-header {
        margin-bottom: 36px;
    }
    .codes-grid {
        grid-template-columns: 1fr;
    }
    .code-text {
        font-size: 16px;
        letter-spacing: 1px;
    }
    .methods-grid {
        grid-template-columns: 1fr;
    }
    .seo-content h3 {
        font-size: 18px;
    }
    .seo-content p {
        font-size: 15px;
    }
    .archive-controls {
        flex-direction: column;
    }
    .search-box {
        min-width: 100%;
    }
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .filter-buttons::-webkit-scrollbar {
        display: none;
    }
    .filter-btn {
        flex-shrink: 0;
    }
    .archive-table {
        font-size: 13px;
    }
    .archive-table th,
    .archive-table td {
        padding: 10px 12px;
    }
    .faq-question {
        font-size: 15px;
        padding: 18px 20px;
    }
    .faq-answer p {
        padding: 0 20px 18px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-brand p {
        max-width: 100%;
    }
    .footer-bottom p {
        font-size: 11px;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero-badge {
        font-size: 12px;
        padding: 6px 14px;
    }
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    .stat-number {
        font-size: 32px;
    }
    .code-value {
        flex-direction: column;
        align-items: stretch;
    }
    .code-text {
        font-size: 15px;
        text-align: center;
    }
    .copy-btn {
        justify-content: center;
        padding: 10px;
    }
    .code-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .code-source {
        max-width: 100%;
    }
    .qa-list li {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    .qa-list code {
        font-size: 12px;
    }
    .step-num {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 12px;
    }
    .steps-list strong {
        font-size: 14px;
    }
    .steps-list p {
        font-size: 12px;
    }
    .faq-question {
        font-size: 14px;
        padding: 16px;
        gap: 12px;
    }
    .faq-answer p {
        padding: 0 16px 16px;
        font-size: 13px;
    }
    .method-card {
        padding: 20px;
    }
    .method-header h3 {
        font-size: 16px;
    }
    .redeem-tips {
        padding: 20px;
    }
    .redeem-tips li {
        font-size: 13px;
    }
    .seo-content {
        padding: 0;
    }
    .seo-content p {
        font-size: 14px;
    }
    .seo-content li {
        font-size: 14px;
    }
    .archive-table th,
    .archive-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    .archive-table .code-cell {
        font-size: 12px;
        letter-spacing: 0.5px;
    }
    .footer {
        padding: 40px 0 24px;
    }
    .footer-content {
        gap: 24px;
    }
    .footer-links h4 {
        font-size: 12px;
        margin-bottom: 12px;
    }
    .footer-links a {
        font-size: 13px;
        padding: 4px 0;
    }
    .social-proof {
        flex-direction: column;
        gap: 8px;
        border-radius: var(--radius);
    }
    .social-proof-divider {
        width: 40px;
        height: 1px;
    }
    .schedule-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .codes-summary-table th:nth-child(3),
    .codes-summary-table td:nth-child(3) {
        display: none;
    }
    .author-avatar {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
}
@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    body {
        font-size: 12pt;
        line-height: 1.5;
        background: #fff !important;
    }
    .header,
    .hero-bg,
    .hero-actions,
    .hero-badge,
    .copy-btn,
    .redeem-link,
    .back-to-top,
    .footer,
    .mobile-toggle,
    .search-box,
    .filter-buttons,
    .update-banner,
    .toast,
    .breadcrumb {
        display: none !important;
    }
    .hero {
        padding: 20px 0;
        min-height: auto;
    }
    .hero h1 {
        -webkit-text-fill-color: #000;
        background: none;
        font-size: 24pt;
    }
    .section {
        padding: 20px 0;
    }
    .code-card {
        border: 1px solid #ccc;
        break-inside: avoid;
        page-break-inside: avoid;
        padding: 16px;
        margin-bottom: 12px;
    }
    .code-text {
        color: #000 !important;
        font-size: 14pt;
    }
    .archive-table {
        font-size: 10pt;
    }
    .archive-table th {
        background: #eee !important;
        color: #000 !important;
    }
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666;
    }
    a[href^="#"]::after,
    a[href^="javascript"]::after {
        content: "";
    }
}