/* Pan Cosmetic x Rajdhevee Clinic 50th True Beauty - Scholarship Lucky Draw Styling */

:root {
    --gh-primary: #1b365d;
    --gh-secondary: #0088cc;
    --gh-gold: #d4af37;
    --gh-gold-hover: #b89628;
    --gh-bg-card: #ffffff;
    --gh-bg-soft: #f8fafc;
    --gh-text: #1e293b;
    --gh-border-radius: 14px;
    --gh-shadow: 0 10px 30px rgba(27, 54, 93, 0.08);
}

.gh-campaign-portal-wrap, .gh-scholarship-card {
    font-family: 'Inter', 'Prompt', -apple-system, sans-serif;
    color: var(--gh-text);
    max-width: 860px;
    margin: 20px auto;
}

.gh-card {
    background: var(--gh-bg-card);
    border-radius: var(--gh-border-radius);
    padding: 24px 28px;
    box-shadow: var(--gh-shadow);
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

/* Hero Banner with Logo */
.gh-campaign-hero {
    background: linear-gradient(135deg, #0088cc 0%, #1b365d 50%, #131943 100%);
    color: #fff;
    border-radius: var(--gh-border-radius);
    padding: 30px 28px;
    box-shadow: 0 12px 35px rgba(27, 54, 93, 0.18);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.gh-hero-header-flex {
    display: flex;
    align-items: center;
    gap: 24px;
}

@media (max-width: 640px) {
    .gh-hero-header-flex {
        flex-direction: column;
        text-align: center;
    }
}

.gh-hero-logo {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.gh-hero-text-wrap {
    flex: 1;
}

.gh-hero-badge {
    background: rgba(255, 255, 255, 0.18);
    color: #fef08a;
    font-weight: 700;
    font-size: 13px;
    padding: 5px 14px;
    border-radius: 30px;
    display: inline-block;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.gh-hero-title {
    font-size: 26px;
    font-weight: 800;
    margin: 10px 0 6px 0;
    color: #ffffff;
}

.gh-hero-desc {
    font-size: 14px;
    color: #e0f2fe;
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
}

.gh-campaign-schedule-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    align-items: center;
}

.gh-sched-date-pill {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.gh-countdown-pill {
    background: #fef08a;
    color: #854d0e;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.gh-countdown-pill.expired {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Rules Document Section */
.gh-section-heading {
    color: var(--gh-primary);
    font-size: 20px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 16px;
}

.gh-rules-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 640px) {
    .gh-rules-content-grid {
        grid-template-columns: 1fr;
    }
}

.gh-rule-col {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
}

.gh-rule-col h4 {
    margin: 0 0 8px 0;
    color: var(--gh-primary);
    font-size: 16px;
}

.gh-rule-col p, .gh-rule-col ul {
    margin: 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

.gh-rule-col ul {
    padding-left: 18px;
}

/* Quota Progress Bars (Coupon Style) */
.gh-quota-progress-section {
    background: #ffffff;
}

.gh-quota-bars-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gh-quota-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
}

.gh-quota-item.gold-item {
    background: #fefce8;
    border-color: #fef08a;
}

.gh-quota-header {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.gh-quota-title {
    color: var(--gh-primary);
}

.gh-quota-count {
    color: #0369a1;
}

.gh-progress-track {
    background: #e2e8f0;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
}

.gh-progress-fill {
    background: linear-gradient(90deg, #3b82f6 0%, #0088cc 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.gh-progress-fill.photo {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.gh-progress-fill.gold {
    background: linear-gradient(90deg, #f59e0b 0%, #d4af37 100%);
}

/* Ticket Checker & Search Box */
.gh-search-wrap {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.gh-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.gh-input:focus {
    border-color: var(--gh-secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15);
}

.gh-btn {
    display: inline-block;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.gh-btn-primary {
    background: linear-gradient(135deg, #1b365d 0%, #0088cc 100%);
    color: #fff;
    width: 100%;
}

.gh-btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.gh-btn-accent {
    background: #0088cc;
    color: #fff;
}

/* Inline Alert Boxes (No Browser Alert Popups) */
.gh-alert-inline {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.gh-alert-danger {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    color: #991b1b;
}

.gh-alert-success {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #166534;
}

/* Dashboard & Stats */
.gh-ticket-summary-card {
    background: var(--gh-bg-card);
    border: 1px solid #e2e8f0;
    border-radius: var(--gh-border-radius);
    padding: 20px 22px;
    box-shadow: var(--gh-shadow);
}

.gh-sn-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
    margin-top: 18px;
}

.gh-sn-box h4 {
    margin: 0 0 10px 0;
    color: var(--gh-primary);
    font-size: 14px;
}

.gh-sn-ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #334155;
    line-height: 1.8;
}

.gh-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 15px;
}

.gh-stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
}

.gh-stat-card.highlight {
    background: #fefce8;
    border-color: #fef08a;
}

.gh-stat-val {
    font-size: 28px;
    font-weight: 800;
    color: var(--gh-primary);
}

.gh-stat-lbl {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* Coupon Cards Grid */
.gh-draw-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gh-primary);
    margin: 30px 0 16px 0;
}

.gh-coupons-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gh-coupon-card {
    display: flex;
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.2s ease;
}

.gh-coupon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.gh-coupon-left {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    text-align: center;
}

.gh-coupon-left.photo-left {
    background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
}

.gh-coupon-left.gold-left {
    background: linear-gradient(135deg, #854d0e 0%, #d4af37 100%);
}

.gh-coupon-amount {
    font-size: 24px;
    font-weight: 800;
}

.gh-coupon-label {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
}

.gh-coupon-right {
    padding: 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gh-coupon-right h4 {
    margin: 0 0 4px 0;
    color: var(--gh-primary);
    font-size: 17px;
}

.gh-coupon-right p {
    margin: 0 0 14px 0;
    font-size: 13px;
    color: #64748b;
}

.gh-spend-qty-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.gh-avail-tickets-text {
    font-weight: 700;
    color: var(--gh-secondary);
}

.gh-input-qty {
    width: 70px;
    padding: 6px 10px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.gh-btn-draw {
    background: var(--gh-primary);
    color: #fff;
}

.photo-btn {
    background: #059669;
}

.gold-btn {
    background: linear-gradient(135deg, #d4af37 0%, #b89628 100%);
    color: #fff;
}

.gh-btn:disabled,
.gh-btn-disabled,
.gh-input-qty:disabled {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Parent Registration Rules Card & Logo */
.gh-header-logo-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1;
}

@media (max-width: 640px) {
    .gh-header-logo-wrap {
        flex-direction: column;
        text-align: center;
    }
}

.gh-portal-logo {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #ffffff;
    padding: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.gh-rules-header-box {
    background: linear-gradient(135deg, #0088cc 0%, #1b365d 55%, #131943 100%);
    border-radius: var(--gh-border-radius);
    padding: 26px 28px;
    margin-bottom: 20px;
    box-shadow: 0 12px 35px rgba(27, 54, 93, 0.2);
    position: relative;
    overflow: hidden;
}

.gh-rules-header-box::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.gh-rules-header-box .gh-title {
    color: #ffffff !important;
    font-size: 21px;
}

.gh-badge-pill {
    background: rgba(255, 255, 255, 0.18);
    color: #fef08a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 5px 14px;
    border-radius: 20px;
    display: inline-block;
    backdrop-filter: blur(4px);
}

.gh-header-sched-pill {
    display: inline-block;
    font-size: 13px;
    color: #ffffff;
    font-weight: 600;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.gh-rule-item {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #334155;
    background: #ffffff;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.gh-rule-num {
    background: var(--gh-primary);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.gh-form-group {
    margin-bottom: 16px;
}

.gh-form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--gh-primary);
}

.hidden { display: none !important; }

/* Portal Tabs: Register | Check Tickets | Lucky Draw (Coming Soon) */
.gh-portal-tabs {
    display: flex;
    gap: 8px;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 20px;
}

.gh-portal-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.gh-portal-tab-btn:hover {
    color: var(--gh-primary);
}

.gh-portal-tab-btn.is-active {
    background: #ffffff;
    color: var(--gh-primary);
    box-shadow: 0 2px 8px rgba(27, 54, 93, 0.12);
}

.gh-tab-soon-pill {
    background: #fef08a;
    color: #854d0e;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .gh-portal-tabs {
        flex-direction: column;
    }

    .gh-portal-tab-btn {
        justify-content: flex-start;
    }
}

.gh-portal-tab-panel {
    display: none;
}

.gh-portal-tab-panel.is-active {
    display: block;
}

.gh-btn-goto-draw {
    width: 100%;
    margin-top: 12px;
    background: linear-gradient(135deg, #d4af37 0%, #b89628 100%);
    color: #fff;
}

.gh-btn-goto-check {
    width: 100%;
    margin-top: 20px;
    background: linear-gradient(135deg, #0088cc 0%, #1b365d 100%);
    color: #fff;
}

/* Coming Soon Placeholder */
.gh-coming-soon-box {
    text-align: center;
    padding: 48px 20px;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    margin-top: 20px;
}

.gh-coming-soon-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.gh-coming-soon-box h3 {
    color: var(--gh-primary);
    font-size: 20px;
    margin: 0 0 10px 0;
}

.gh-coming-soon-box p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 16px auto;
}

/* Modal */
.gh-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.gh-modal-content {
    background: #fff;
    padding: 32px 28px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.gh-close-modal {
    position: absolute;
    top: 12px; right: 16px;
    font-size: 24px;
    cursor: pointer;
    color: #94a3b8;
}
