/* 
 * DAMRAAZ V2 - LUXURY DARK DESIGN SYSTEM
 * Accent Color: #D4AF37 (Gold)
 * Background: #0B0F19 (Deep Slate Midnight) to #020617 (Deep Black)
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-main: #060a13;
    --bg-card: rgba(15, 23, 42, 0.45);
    --bg-card-hover: rgba(30, 41, 59, 0.6);
    --border-color: rgba(212, 175, 55, 0.15);
    --border-hover: rgba(212, 175, 55, 0.4);
    
    --primary: #D4AF37; /* Metallic Gold */
    --primary-hover: #F3E5AB; /* Light Soft Gold */
    --primary-glow: rgba(212, 175, 55, 0.35);
    
    --secondary: #94A3B8;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --accent: #38BDF8; /* Sky blue for dynamic sub-elements */
    --accent-green: #10B981;
    --accent-red: #EF4444;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* System Effects */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.1);
    --shadow-gold-hover: 0 0 30px rgba(212, 175, 55, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Gradients & Effects */
body::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.03) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #FFF;
    letter-spacing: -0.02em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Grid & Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-gold);
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-gold-hover);
    transform: translateY(-4px);
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #AA7C11 100%);
    color: #060a13;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 100%);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
    color: #060a13;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--primary-hover);
    color: var(--primary-hover);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}

.btn-dark {
    background: rgba(15, 23, 42, 0.8);
    color: #FFF;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-dark:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Leaderboard Badges */
.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}

.rank-diamond {
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.rank-gold {
    background: rgba(212, 175, 55, 0.15);
    color: #D4AF37;
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.rank-silver {
    background: rgba(148, 163, 184, 0.15);
    color: #CBD5E1;
    border-color: rgba(148, 163, 184, 0.3);
}

.rank-bronze {
    background: rgba(180, 83, 9, 0.15);
    color: #F59E0B;
    border-color: rgba(180, 83, 9, 0.3);
}

.rank-newcomer {
    background: rgba(255, 255, 255, 0.05);
    color: #94A3B8;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Leaderboard Snapshot Row */
.leaderboard-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    transition: var(--transition);
}

.leaderboard-row:hover {
    background: rgba(212, 175, 55, 0.04);
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateX(4px);
}

/* Premium Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: #FFF;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
    background: rgba(15, 23, 42, 0.85);
}

/* Admin Dashboard Table */
.dmz-table-wrapper {
    overflow-x: auto;
}

.dmz-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.dmz-table th {
    padding: 16px;
    background: rgba(15, 23, 42, 0.8);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
}

.dmz-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 0.95rem;
    transition: var(--transition);
}

.dmz-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Modern Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.2); }
    50% { box-shadow: 0 0 30px rgba(212, 175, 55, 0.45); }
    100% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.2); }
}

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-glow {
    animation: pulse-glow 3s infinite;
}

.animate-slide-in {
    animation: slideInLeft 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.animate-fade-scale {
    animation: fadeInScale 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s both;
}

/* ─── 3D TILT PRODUCT CARDS ──────────────────────────────────────────────── */
.product-3d-scene {
    perspective: 900px;
    perspective-origin: 50% 50%;
}

.product-card-3d {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card-3d:hover::before {
    opacity: 1;
}

.product-card-3d:hover {
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(212,175,55,0.15);
}

.product-card-3d .card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 230px;
    background: #0c1120;
}

.product-card-3d .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.product-card-3d:hover .card-img-wrap img {
    transform: scale(1.08);
}

/* gradient overlay on image */
.product-card-3d .card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,10,19,0.7) 0%, transparent 50%);
    pointer-events: none;
}

.product-card-3d .card-pts-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(6,10,19,0.88);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 4px 12px;
    color: var(--accent);
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    z-index: 2;
    backdrop-filter: blur(8px);
}

.product-card-3d .card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.product-card-3d .card-name {
    font-size: 1rem;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-3d .card-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    flex-grow: 1;
}

.product-card-3d .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 12px;
    margin-top: auto;
}

.product-card-3d .card-price {
    display: flex;
    flex-direction: column;
}

.product-card-3d .price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.product-card-3d .price-current {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.05rem;
    font-family: var(--font-heading);
}

/* Category 3D cards */
.category-card-3d {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px 24px;
    text-align: center;
    display: block;
    transition: transform 0.15s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.category-card-3d::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 180deg at 50% 50%, rgba(212,175,55,0) 0deg, rgba(212,175,55,0.06) 60deg, rgba(212,175,55,0) 120deg);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: spin 6s linear infinite paused;
}

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

.category-card-3d:hover::after {
    opacity: 1;
    animation-play-state: running;
}

.category-card-3d:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 30px rgba(212,175,55,0.12);
}

.category-icon {
    width: 72px;
    height: 72px;
    background: rgba(212,175,55,0.08);
    border: 1.5px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.category-card-3d:hover .category-icon {
    background: rgba(212,175,55,0.15);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(212,175,55,0.25);
}

/* ─── HERO SECTION 75/25 SPLIT ───────────────────────────────────────────── */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: stretch;
    background: radial-gradient(ellipse at 80% 50%, rgba(212,175,55,0.07) 0%, transparent 55%),
                radial-gradient(ellipse at 20% 80%, rgba(56,189,248,0.04) 0%, transparent 50%);
}

.hero-inner {
    display: flex;
    width: 100%;
    min-height: 90vh;
}

/* 25% text column */
.hero-text-col {
    flex: 0 0 28%;
    display: flex;
    align-items: center;
    padding: 60px 40px;
    position: relative;
    z-index: 2;
}

.hero-glass-card {
    background: rgba(6, 10, 19, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212,175,55,0.22);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 60px rgba(212,175,55,0.07) inset;
    width: 100%;
}

/* 75% image column */
.hero-img-col {
    flex: 0 0 72%;
    position: relative;
    overflow: hidden;
}

.hero-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.hero-img-col::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(6,10,19,0.55) 0%, transparent 35%);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .hero-inner { flex-direction: column; min-height: auto; }
    .hero-text-col { flex: none; width: 100%; padding: 40px 24px; order: 2; }
    .hero-img-col { flex: none; width: 100%; height: 55vw; min-height: 320px; order: 1; }
}

/* ─── SAFAR PORTAL BUTTON ────────────────────────────────────────────────── */
.btn-safar-portal {
    background: linear-gradient(135deg, #1a2340 0%, #0d1525 100%);
    color: #60A5FA;
    border: 1.5px solid rgba(96,165,250,0.4);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-safar-portal:hover {
    background: linear-gradient(135deg, #1e3a6e 0%, #1a2340 100%);
    border-color: rgba(96,165,250,0.8);
    box-shadow: 0 0 20px rgba(96,165,250,0.25);
    color: #93C5FD;
    transform: translateY(-2px);
}

/* text-gold utility */
.text-gold { color: var(--primary); }

/* Nav Bar style */
.luxury-nav {
    background: rgba(6, 10, 19, 0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 80px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.luxury-nav .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.luxury-nav .nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFF;
    display: flex;
    align-items: center;
    gap: 8px;
}

.luxury-nav .nav-logo span {
    color: var(--primary);
}

.luxury-nav .nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.luxury-nav .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.luxury-nav .nav-link:hover, .luxury-nav .nav-link.active {
    color: #FFF;
}

.luxury-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.luxury-nav .nav-link:hover::after, .luxury-nav .nav-link.active::after {
    width: 100%;
}

.luxury-nav .nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Admin Panel Side Bar layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: #090e1a;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.admin-brand {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: #FFF;
    margin-bottom: 40px;
}

.admin-brand span {
    color: var(--primary);
}

.admin-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.admin-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.admin-menu-link:hover, .admin-menu-link.active {
    color: #FFF;
    background: rgba(212, 175, 55, 0.08);
    border-left: 3px solid var(--primary);
}

.admin-content {
    flex-grow: 1;
    background: var(--bg-main);
    padding: 40px;
    overflow-y: auto;
}

.admin-card-metric {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-card-metric .metric-val {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #FFF;
}

.admin-card-metric .metric-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}
