/* ===== CSS RESET & VARIABLES ===== */
:root {
    --primary: #cda45e; /* Tactical Bronze/Gold Accent */
    --primary-hover: #b08d51;
    --bg-dark: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(20, 20, 20, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(30, 30, 30, 0.8);
    --error: #ff4d4d;
    --success: #22c55e;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* ===== UTILITIES ===== */
.hidden {
    display: none !important;
}

/* ===== BACKGROUND ===== */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://offertabs.s3.amazonaws.com/offer/ffsigc/site/media/6a7135e49261b2.46490823.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 100%);
    z-index: -1;
}

/* ===== LAYOUT ===== */
.page-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.main-content {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: auto 0;
}

/* ===== GLASS PANEL ===== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 40px 50px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
}

/* ===== TYPOGRAPHY & HEADER ===== */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(205, 164, 94, 0.15);
    border: 1px solid rgba(205, 164, 94, 0.3);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.highlight {
    color: var(--primary);
}

.subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FORMS ===== */
.giveaway-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: var(--font-body);
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-main);
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(205, 164, 94, 0.2);
    background-color: rgba(0, 0, 0, 0.6);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ===== BUTTONS ===== */
.btn-primary {
    width: 100%;
    padding: 16px 24px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bg-dark);
    background: var(--primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(205, 164, 94, 0.2);
}

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

.btn-secondary {
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary.completed {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    color: var(--success);
    cursor: default;
}

/* ===== POST-ENTRY VIEW ===== */
.success-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
}

.success-icon {
    color: var(--success);
    margin-bottom: 16px;
}

.success-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.success-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ===== BONUS ACTIONS ===== */
.bonus-actions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.bonus-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.bonus-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bonus-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.bonus-points {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
}

/* ===== REFERRAL BOX ===== */
.referral-box {
    background: rgba(205, 164, 94, 0.05);
    border: 1px solid rgba(205, 164, 94, 0.2);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.referral-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}

.referral-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.share-input-group {
    display: flex;
    gap: 8px;
}

.share-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-family: monospace;
}

.copy-btn {
    width: auto;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 0;
}

/* ===== STATUS & ERRORS ===== */
.status-message {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 24px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.error-msg {
    color: var(--error);
    font-size: 0.9rem;
    padding: 12px;
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    border-radius: 8px;
    text-align: center;
}

/* ===== FOOTER / POWERED BY ===== */
#wbx-powered-by-slot {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .glass-panel {
        padding: 30px 20px;
    }
    
    .title {
        font-size: 2.2rem;
    }
    
    .bonus-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .share-input-group {
        flex-direction: column;
    }
    
    .copy-btn {
        width: 100%;
    }
}