/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Prevent scrollbar flash on load */
html, body {
    scrollbar-gutter: stable;
}

:root {
    --primary-color: #6366f1;  /* Match product_checker */
    --secondary-color: #8b5cf6;  /* Match product_checker */
    --accent-color: #06b6d4;  /* Cyan for page-specific accents */
    --dark-bg: #1a1f2e;
    --dark-surface: #2a3142;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);  /* Match product_checker */
    --border-color: rgba(148, 163, 184, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --success: #10b981;
    --danger: #ef4444;
    --cyan-accent: linear-gradient(135deg, #06b6d4 0%, #14b8a6 100%);  /* Cyan for page distinction */
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--dark-bg);
    min-height: 100vh;
    line-height: 1.6;
    color: var(--text-primary);
    background-image: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.1), transparent 50%),
                      radial-gradient(ellipse at bottom, rgba(139, 92, 246, 0.1), transparent 50%);
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Top Navigation Bar - Same as Landing Page */
.navbar {
    background: rgba(26, 31, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

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

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.logo-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-select {
    background: var(--dark-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-select:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

/* Fix dropdown options background and text color */
.language-select option {
    background: var(--dark-surface);
    color: var(--text-primary);
    padding: 0.5rem;
}

.nav-cart {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.nav-cart:hover {
    color: var(--primary-color);
}

.nav-account, .nav-logout, .nav-login, .nav-register {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-account:hover, .nav-logout:hover, .nav-login:hover {
    color: var(--text-primary);
}

.nav-register {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-register:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Main content */
.main-content {
    margin-top: 100px;
    min-height: calc(100vh - 100px);
    padding: 2rem 0 0 0;
    position: relative;
    width: 100%;
}

.main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;  /* Match product_checker exactly */
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Header section with cyan accent for distinction - smaller */
.header-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(20, 184, 166, 0.08));
    border-radius: 15px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.logo-section h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);  /* White text instead of cyan */
    margin-bottom: 8px;
}

.logo-section p {
    color: var(--text-secondary);
    font-size: 1rem;  /* Smaller */
    margin-bottom: 0;
}

/* Special Offer Banner with Pink Theme */
.special-banner {
    margin: 30px 0;
    max-width: 100%;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(219, 39, 119, 0.1));
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: visible;
    z-index: 1;
    contain: layout;
}

.banner-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.1), transparent 60%);
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.special-banner .banner-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100px;
    padding-right: 170px;
    box-sizing: border-box;
}

.banner-text {
    flex: 1;
    padding-right: 20px;
}

.banner-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ec4899, #db2777);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.banner-subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 5px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-note {
    color: #ffffff;
    font-style: italic;
    opacity: 1;
    font-size: 0.9rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* SteamUnlock Card with Pink Theme */
.steamunlock-card-container {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    width: 140px;
}

.steamunlock-card {
    display: block;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(30, 41, 59, 0.95));
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    border: 2px solid #ec4899;
    box-shadow: 0 4px 24px rgba(236, 72, 153, 0.3),
                0 4px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    transform: rotate(-5deg) translateZ(0);
    transform-origin: center center;
    will-change: transform;
    position: relative;
}

.steamunlock-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ec4899, #f472b6, #db2777, #ec4899);
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    background-size: 200% 200%;
    animation: steamunlock-shimmer 3s ease infinite;
}

@keyframes steamunlock-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.steamunlock-card:hover {
    transform: rotate(2deg) scale(1.12) translateY(-5px) translateZ(0);
    border-color: #f472b6;
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.8),
                0 0 60px rgba(236, 72, 153, 0.6),
                0 25px 60px rgba(236, 72, 153, 0.4),
                0 15px 40px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.steamunlock-card:hover::after {
    opacity: 1;
}

.steamunlock-card .game-card-image {
    width: 100%;
    height: 75px;
    overflow: hidden;
    position: relative;
}

.steamunlock-card .game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.steamunlock-card .game-card-content {
    padding: 8px;
    background: transparent;
}

.steamunlock-card .game-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 1px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.steamunlock-card .game-type {
    font-size: 0.6rem;
    color: #94a3b8;
    margin-bottom: 3px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.steamunlock-card .game-price {
    font-size: 0.75rem;
    font-weight: 600;
    color: #dc2626;
    display: inline-block;
    padding: 1px 5px;
    background: rgba(220, 38, 38, 0.15);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.steamunlock-card:hover .game-title {
    color: #1a1a1a;
    font-weight: 700;
}

.steamunlock-card:hover .game-type {
    color: #1a1a1a;
}

.steamunlock-card:hover .game-price {
    color: #ffffff;
    background: rgba(220, 38, 38, 0.8);
    font-weight: 700;
}

/* Instructions alert section - match product_checker exactly */
.instructions-alert {
    background: linear-gradient(135deg, #3a3f52, #2f3444);
    border-radius: 15px;
    padding: 25px;  /* Match product_checker */
    margin-bottom: 30px;  /* Match product_checker */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(6, 182, 212, 0.2);  /* Cyan border for distinction */
}

.alert-content h3 {
    color: #ec4899;  /* Pink color */
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.instruction-steps {
    margin-bottom: 15px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding: 10px;
    background: rgba(42, 49, 66, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.step-number {
    background: var(--cyan-accent);  /* Cyan for distinction */
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.step-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.important-note {
    color: rgb(21, 226, 48);
    font-size: 1rem;
    font-weight: 600;
    background: rgba(6, 182, 212, 0.15);
    padding: 10px 15px;
    border-radius: 8px;
    margin: 0;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Form container - match product_checker exactly */
.form-container {
    background: linear-gradient(135deg, #3a3f52, #2f3444);
    border-radius: 20px;
    padding: 30px;  /* Match product_checker */
    margin-bottom: 30px;  /* Match product_checker */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(6, 182, 212, 0.2);  /* Cyan border for distinction */
}

.form-header {
    text-align: center;
    margin-bottom: 20px;  /* Smaller */
}

.form-header h2 {
    color: #ec4899;  /* Pink color */
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;  /* Smaller */
    font-weight: 500;
}

/* Input group */
.input-group {
    margin-bottom: 20px;  /* Smaller */
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1rem;
}

.label-icon {
    font-size: 1.1rem;
}

.example-text, .help-text {
    font-size: 0.9rem;  /* Match product_checker */
    color: var(--text-primary);  /* White text like product_checker */
    font-weight: 400;  /* Normal weight */
    margin-left: 0;  /* Remove auto margin */
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);  /* Cyan focus */
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.input-help {
    margin-top: 6px;
}

.input-help small {
    font-size: 0.85rem;
    color: #ff8800;
}

/* Get Code Button with cyan accent */
.get-code-button {
    width: 100%;
    padding: 14px 24px;
    background: var(--cyan-accent);  /* Cyan button for distinction */
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    margin-bottom: 20px;
}

.get-code-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.get-code-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button-icon {
    font-size: 1.2rem;
}

.loading-spinner {
    display: inline-block;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Timing notice */
.timing-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(6, 182, 212, 0.1);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notice-content p {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin: 0;
}

/* Code Result Section with cyan accents */
.code-result {
    background: linear-gradient(135deg, #3a3f52, #2f3444);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.2);
    border: 2px solid rgba(6, 182, 212, 0.4);  /* Cyan border for distinction */
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(6, 182, 212, 0.3);
}

.result-header h2 {
    font-size: 1.8rem;
    background: var(--cyan-accent);  /* Cyan for distinction */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.code-details {
    margin-bottom: 25px;
}

.detail-item {
    background: rgba(42, 49, 66, 0.4);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);  /* Cyan accent */
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.detail-icon {
    font-size: 1.2rem;
}

.detail-value {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
}

.code-item {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(20, 184, 166, 0.15));
    border: 2px solid rgba(6, 182, 212, 0.4);
}

.code-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.code-value {
    flex: 1;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.3rem;
    color: var(--accent-color);  /* Cyan */
    background: rgba(6, 182, 212, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
}

.copy-button {
    background: var(--cyan-accent);  /* Cyan button */
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.copy-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.copy-icon {
    font-size: 1.3rem;
    display: block;
}

.code-instructions {
    background: rgba(42, 49, 66, 0.3);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.code-instructions h4 {
    color: var(--accent-color);  /* Cyan accent */
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.code-instructions ol {
    padding-left: 20px;
    color: var(--text-primary);
}

.code-instructions li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Error States */
.no-code-found {
    background: linear-gradient(135deg, #3a2a3a, #2a1f2f);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
    border: 2px solid rgba(239, 68, 68, 0.4);
    animation: slideIn 0.5s ease;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.no-code-found h3 {
    color: var(--danger);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.error-details, .error-message {
    background: rgba(239, 68, 68, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.error-details p, .error-message p {
    color: var(--text-primary);
    margin: 0;
}

.error-suggestions {
    text-align: left;
    background: rgba(42, 49, 66, 0.4);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.error-suggestions h4 {
    color: var(--accent-color);  /* Cyan accent */
    margin-bottom: 10px;
}

.error-suggestions ul {
    padding-left: 20px;
    color: var(--text-secondary);
}

.error-suggestions li {
    margin-bottom: 6px;
}

/* Help Section */
.help-section {
    margin-bottom: 30px;
}

.help-card {
    background: linear-gradient(135deg, #3a3f52, #2f3444);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(6, 182, 212, 0.2);  /* Cyan border */
}

.warranty-notice {
    color: var(--text-primary);
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.notice-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);  /* Cyan accent */
}

.warranty-notice p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--dark-surface);
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
    padding: 3rem 0 0 0;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-cart, .nav-account, .nav-logout {
        display: none;
    }

    .main-content {
        margin-top: 70px;
    }

    .main-container {
        padding: 0 15px;
    }

    .logo-section h1 {
        font-size: 2rem;
    }

    .code-value {
        font-size: 1.5rem;
        letter-spacing: 0.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .steamunlock-card-container {
        display: none;
    }

    .special-banner .banner-content {
        text-align: center;
        justify-content: center;
        padding-right: 0;
    }
}
