@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&display=swap');

:root {
    --party-navy: #0f2b48;
    --party-navy-dark: #071726;
    --party-navy-light: #1a426e;
    --party-gold: #d4af37;
    --party-gold-light: #f3e5ab;
    --party-gold-dark: #aa820a;
    --party-accent: #c59b27;
    --party-bg: #f4f7fa;
    --party-card-bg: #ffffff;
    --party-text: #1e293b;
    --party-muted: #64748b;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    background-color: var(--party-bg);
    color: var(--party-text);
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar-party {
    background: linear-gradient(135deg, var(--party-navy-dark) 0%, var(--party-navy) 100%);
    border-bottom: 3px solid var(--party-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.navbar-party .navbar-brand {
    font-weight: 800;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-party .nav-link {
    color: #e2e8f0 !important;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.navbar-party .nav-link:hover, .navbar-party .nav-link.active {
    color: var(--party-gold) !important;
    background-color: rgba(255, 255, 255, 0.08);
}

/* Primary Button with Gold Gradient */
.btn-gold {
    background: linear-gradient(135deg, var(--party-gold) 0%, var(--party-gold-dark) 100%);
    color: #071726;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
    transition: all 0.25s ease;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #f0c541 0%, #bd900b 100%);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
}

.btn-navy {
    background: linear-gradient(135deg, var(--party-navy) 0%, var(--party-navy-dark) 100%);
    color: #ffffff;
    font-weight: 700;
    border: 1px solid var(--party-gold);
    transition: all 0.25s ease;
}

.btn-navy:hover {
    background: linear-gradient(135deg, var(--party-navy-light) 0%, var(--party-navy) 100%);
    color: var(--party-gold-light);
    transform: translateY(-2px);
}

/* Luxury Cards */
.card-party {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 43, 72, 0.06);
    overflow: hidden;
    transition: all 0.25s ease;
}

.card-party-header {
    background: linear-gradient(135deg, var(--party-navy) 0%, var(--party-navy-light) 100%);
    color: #ffffff;
    padding: 18px 24px;
    border-bottom: 2px solid var(--party-gold);
}

/* 4-Stage Stepper */
.stepper-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 30px 0;
}

.stepper-container::before {
    content: '';
    position: absolute;
    top: 24px;
    right: 35px;
    left: 35px;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
}

.stepper-progress-bar {
    position: absolute;
    top: 24px;
    right: 35px;
    height: 4px;
    background: linear-gradient(90deg, var(--party-gold) 0%, var(--party-gold-dark) 100%);
    z-index: 2;
    transition: width 0.4s ease;
}

.step-item {
    position: relative;
    z-index: 3;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
}

.step-item.active .step-circle {
    border-color: var(--party-gold);
    background: var(--party-navy);
    color: var(--party-gold);
    box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.2);
}

.step-item.completed .step-circle {
    border-color: #10b981;
    background: #10b981;
    color: #ffffff;
}

.step-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
}

.step-item.active .step-label {
    color: var(--party-navy);
}

.step-item.completed .step-label {
    color: #10b981;
}

/* Membership Card 3D Styling (Club Style) */
.club-card-wrapper {
    perspective: 1200px;
    max-width: 480px;
    margin: 0 auto;
}

.club-card {
    position: relative;
    width: 100%;
    height: 290px;
    background: linear-gradient(135deg, #071726 0%, #0f2b48 50%, #17385c 100%);
    border-radius: 20px;
    border: 2px solid var(--party-gold);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(212, 175, 55, 0.3);
    color: #ffffff;
    padding: 22px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.club-card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.club-card-watermark {
    position: absolute;
    bottom: -20px;
    left: 20px;
    width: 180px;
    height: 180px;
    opacity: 0.08;
    pointer-events: none;
}

.club-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.club-card-body {
    display: flex;
    gap: 18px;
    align-items: center;
}

.club-card-photo {
    width: 86px;
    height: 110px;
    border-radius: 12px;
    border: 2px solid var(--party-gold);
    object-fit: cover;
    background: #000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    flex-shrink: 0;
}

.club-card-info {
    flex-grow: 1;
}

.club-card-name {
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.club-card-code {
    display: inline-block;
    background: linear-gradient(135deg, var(--party-gold) 0%, var(--party-gold-dark) 100%);
    color: #071726;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.club-card-details {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.6;
}

.club-card-qr {
    width: 78px;
    height: 78px;
    background: #ffffff;
    border-radius: 8px;
    padding: 4px;
    border: 2px solid var(--party-gold);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    flex-shrink: 0;
}

.club-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    font-size: 11px;
    color: var(--party-gold-light);
    border-top: 1px dashed rgba(212, 175, 55, 0.3);
    padding-top: 8px;
}

/* Camera UI */
.camera-wrapper {
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    max-width: 440px;
    margin: 0 auto;
    border: 2px solid var(--party-gold);
}

.camera-wrapper video {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.camera-controls {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.btn-snap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--party-gold);
    color: #071726;
    border: 3px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    cursor: pointer;
}

.btn-snap:hover {
    transform: scale(1.08);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stepper-container {
        margin: 15px 0;
    }
    .step-circle {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    .step-label {
        font-size: 10px;
    }
    .club-card {
        height: auto;
        padding: 16px;
    }
    .club-card-body {
        flex-direction: column;
        text-align: center;
    }
    .club-card-header {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    .club-card-qr {
        margin-top: 10px;
    }
}
