/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
}
body {
    background: #0b0b0b;
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Particles Background ===== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 30%, #1a2a1a, #0a0f0a 70%);
}

/* ===== Glassmorphism ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.1);
}

/* ===== Buttons ===== */
.btn-gold {
    background: linear-gradient(135deg, #d4a017, #f5c542);
    border: none;
    color: #0b0b0b;
    font-weight: 700;
    padding: 14px 48px;
    border-radius: 60px;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    box-shadow: 0 0 30px rgba(245, 197, 66, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
}
.btn-gold::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.btn-gold:hover {
    transform: scale(1.04);
    box-shadow: 0 0 50px rgba(245, 197, 66, 0.6);
    background: linear-gradient(135deg, #e6b422, #ffd966);
}

.btn-outline-gold {
    background: transparent;
    border: 1px solid #f5c542;
    color: #f5c542;
    padding: 8px 24px;
    border-radius: 40px;
    transition: 0.3s;
    cursor: pointer;
    font-weight: 500;
    display: inline-block;
    text-decoration: none;
    font-size: 0.9rem;
}
.btn-outline-gold:hover {
    background: #f5c542;
    color: #0b0b0b;
}
.btn-sm {
    padding: 6px 16px;
    font-size: 0.8rem;
}

/* ===== Container ===== */
.container {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 0;
}
.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 60px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}
.hero-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(245, 197, 66, 0.03) 0%, transparent 60%);
    animation: glowRotate 20s linear infinite;
}
@keyframes glowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.hero-content > * {
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f5c542, #d4a017, #f5c542, #d4a017);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 4s ease-in-out infinite;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero .subtitle {
    font-size: 1.2rem;
    color: #b8a07c;
    letter-spacing: 4px;
    margin-bottom: 8px;
    font-weight: 300;
}
.hero p {
    font-size: 1.3rem;
    color: #cfcfcf;
    max-width: 650px;
    margin: 20px auto 40px;
    line-height: 2;
}
.brand {
    font-size: 1rem;
    color: #b8a07c;
    letter-spacing: 3px;
    margin-bottom: 10px;
    opacity: 0.8;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
    padding: 8px 16px;
    border-radius: 40px;
    display: inline-block;
}
.brand:hover {
    background: rgba(255, 215, 0, 0.05);
    color: #f5c542;
}
.brand .secret-dots {
    display: inline-block;
    font-size: 0.6rem;
    color: #444;
    margin-right: 4px;
    transition: 0.3s;
}
.brand:hover .secret-dots {
    color: #f5c542;
}
.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b8a07c;
    font-size: 0.9rem;
}
.hero-feature i {
    color: #f5c542;
    font-size: 1.2rem;
}
.floating-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 197, 66, 0.05) 0%, transparent 70%);
    pointer-events: none;
    animation: floatOrb 8s ease-in-out infinite;
}
@keyframes floatOrb {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

/* ===== Form Overlay ===== */
.form-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    z-index: 999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.form-overlay.active {
    display: flex;
}
.form-card {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 48px;
    padding: 45px 40px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9);
    position: relative;
    overflow: hidden;
}
.form-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 20%, rgba(245, 197, 66, 0.05) 0%, transparent 70%);
    pointer-events: none;
}
.form-card h2 {
    color: #f5c542;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}
.form-card input {
    width: 100%;
    padding: 16px 18px;
    margin: 8px 0 16px;
    border-radius: 40px;
    border: 1px solid #444;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-size: 1rem;
    transition: 0.3s;
}
.form-card input:focus {
    border-color: #f5c542;
    outline: none;
    box-shadow: 0 0 20px rgba(245, 197, 66, 0.2);
}
.form-card label {
    color: #ccc;
    font-size: 0.9rem;
    margin-right: 10px;
}
.close-form {
    background: none;
    border: none;
    color: #aaa;
    font-size: 2rem;
    float: left;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    z-index: 2;
}
.close-form:hover {
    color: #f5c542;
}

/* ===== Workshop Section ===== */
.workshop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    padding: 30px 0 60px;
}
.session-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.08);
    border-radius: 28px;
    overflow: hidden;
    transition: 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.session-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 197, 66, 0.1);
}
.session-thumb {
    width: 100%;
    height: 160px;
    background: #1e2a1e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5c542;
    font-size: 2.5rem;
    background-image: linear-gradient(145deg, #1a2a1a, #0f1a0f);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}
.session-body {
    padding: 18px 20px 22px;
}
.session-body h4 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: #f0e0c0;
}
.session-body p {
    font-size: 0.85rem;
    color: #b0b0b0;
    margin: 8px 0 14px;
    line-height: 1.6;
}
.video-player-wrapper {
    background: #0a0f0a;
    border-radius: 28px;
    overflow: hidden;
    margin: 20px 0 30px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}
video {
    width: 100%;
    display: block;
    border-radius: 20px;
}

/* ===== Admin Panel ===== */
.admin-section {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 40px;
    padding: 30px 25px;
    margin: 40px 0;
    border: 1px solid rgba(255, 215, 0, 0.1);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.admin-table th {
    text-align: right;
    padding: 12px 8px;
    color: #f5c542;
    border-bottom: 1px solid #333;
}
.admin-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #222;
    color: #ddd;
}
.admin-table tr:hover {
    background: rgba(255, 215, 0, 0.02);
}
.hidden {
    display: none !important;
}
.stats-badge {
    background: rgba(245, 197, 66, 0.1);
    border: 1px solid rgba(245, 197, 66, 0.2);
    border-radius: 40px;
    padding: 6px 20px;
    font-size: 0.8rem;
    color: #f5c542;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.edit-item {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    background: #111;
    padding: 6px 12px;
    border-radius: 40px;
    margin-bottom: 6px;
}
.edit-item input {
    background: #222;
    border: 1px solid #333;
    border-radius: 30px;
    padding: 4px 12px;
    color: #fff;
    flex: 1;
    min-width: 100px;
}
.edit-item input[type="text"]:nth-child(4) {
    flex: 2;
    min-width: 120px;
    direction: ltr;
}
.message {
    background: rgba(245, 197, 66, 0.1);
    border: 1px solid rgba(245, 197, 66, 0.2);
    border-radius: 40px;
    padding: 10px 20px;
    margin-top: 15px;
    color: #f5c542;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .hero-content {
        padding: 30px 18px;
    }
    .form-card {
        padding: 30px 18px;
    }
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .edit-item {
        flex-direction: column;
        align-items: stretch;
        border-radius: 20px;
        padding: 12px;
    }
    .edit-item input {
        min-width: auto;
    }
    .admin-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .admin-actions input,
    .admin-actions .btn-outline-gold {
        width: 100%;
        text-align: center;
    }
}