/* vCards - pst.net style clone */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0a0e1a;
    --bg-2: #111528;
    --surface: rgba(255,255,255,0.03);
    --surface-2: rgba(255,255,255,0.05);
    --border: rgba(255,255,255,0.08);
    --border-2: rgba(255,255,255,0.15);
    --text: #ffffff;
    --text-2: rgba(255,255,255,0.7);
    --text-3: rgba(255,255,255,0.5);
    --primary: #6366f1;
    --primary-2: #8b5cf6;
    --pink: #ec4899;
    --cyan: #06b6d4;
    --green: #10b981;
    --amber: #f59e0b;
    --red: #ef4444;
    --radius: 12px;
    --radius-lg: 16px;
}

html, body {
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Demo banner */
.demo-banner {
    background: rgba(245,158,11,0.15);
    color: #fbbf24;
    font-size: 12px;
    text-align: center;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(245,158,11,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    font-weight: 500;
}

/* Navbar */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 48px;
    max-width: 1280px;
    margin: 0 auto;
}
.nav .brand {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav .brand .logo-mark {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg,var(--primary),var(--primary-2));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; color: var(--text-2); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--border-2);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}
.btn:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.25); }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-color: transparent;
    color: #fff;
}
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-2), var(--pink)); box-shadow: 0 8px 24px rgba(139,92,246,0.4); }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-ghost { background: transparent; border: 1px solid var(--border); }

/* Hero */
.hero {
    text-align: center;
    padding: 80px 24px 40px;
    max-width: 900px;
    margin: 0 auto;
}
.hero-pill {
    display: inline-block;
    background: rgba(99,102,241,0.15);
    color: #a5b4fc;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(99,102,241,0.3);
    margin-bottom: 28px;
}
.hero h1 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 600;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 22px;
}
.hero h1 .gradient {
    background: linear-gradient(90deg,var(--primary-2),var(--pink),var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 18px;
    color: var(--text-2);
    max-width: 620px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Animated floating card */
.floating-card-wrap {
    padding: 20px 24px 80px;
    display: flex;
    justify-content: center;
    perspective: 1200px;
}
.vcard {
    width: 380px;
    max-width: 100%;
    height: 230px;
    background: linear-gradient(135deg,#1e1b4b 0%,#312e81 50%,#4c1d95 100%);
    border-radius: 18px;
    padding: 24px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 60px -20px rgba(99,102,241,0.45), 0 10px 30px -10px rgba(0,0,0,0.5);
    transform-style: preserve-3d;
    animation: cardFloat 6s ease-in-out infinite;
}
@keyframes cardFloat {
    0%,100% { transform: rotateY(-6deg) rotateX(4deg) translateY(0); }
    50% { transform: rotateY(-8deg) rotateX(6deg) translateY(-12px); }
}
.vcard.pink { background: linear-gradient(135deg,#831843 0%,#9f1239 50%,#be185d 100%); }
.vcard.cyan { background: linear-gradient(135deg,#164e63 0%,#155e75 50%,#0e7490 100%); }
.vcard.dark { background: linear-gradient(135deg,#030712 0%,#111827 50%,#1f2937 100%); }

.vcard-head { display: flex; justify-content: space-between; align-items: flex-start; }
.vcard-label { font-size: 10px; color: rgba(255,255,255,0.6); letter-spacing: 2px; font-weight: 500; }
.vcard-brand { font-weight: 600; font-size: 20px; letter-spacing: 1px; font-style: italic; }
.vcard-chip {
    width: 44px; height: 32px;
    background: linear-gradient(135deg,#fbbf24,#d97706);
    border-radius: 6px;
    margin: 20px 0 14px;
    position: relative;
}
.vcard-chip::before, .vcard-chip::after {
    content:''; position: absolute; background: rgba(0,0,0,0.15);
}
.vcard-chip::before { top: 6px; left: 6px; right: 6px; height: 2px; }
.vcard-chip::after { top: 14px; left: 6px; right: 6px; height: 2px; }
.vcard-num {
    font-family: 'SF Mono', Menlo, monospace;
    font-size: 20px;
    letter-spacing: 3px;
    margin-bottom: 18px;
}
.vcard-foot { display: flex; justify-content: space-between; align-items: flex-end; }
.vcard-foot-col .mini { font-size: 9px; color: rgba(255,255,255,0.55); letter-spacing: 1.5px; margin-bottom: 3px; font-weight: 500; }
.vcard-foot-col .val { font-size: 13px; font-weight: 500; }

/* Feature grid */
.features {
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 64px 24px;
}
.features-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    text-align: center;
    margin-bottom: 48px;
}
.section-title h2 {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 14px;
}
.section-title p { color: var(--text-2); font-size: 16px; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.feature {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.feature:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
}
.feature::after {
    content:'';
    position:absolute;
    inset: -1px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(236,72,153,0.3));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s;
}
.feature:hover::after { opacity: 0.6; filter: blur(20px); }
.feature-icon {
    width: 44px; height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 18px;
}
.feature-icon.indigo { background: rgba(99,102,241,0.2); color: #a5b4fc; }
.feature-icon.pink { background: rgba(236,72,153,0.2); color: #f9a8d4; }
.feature-icon.cyan { background: rgba(6,182,212,0.2); color: #67e8f9; }
.feature-icon.green { background: rgba(16,185,129,0.2); color: #6ee7b7; }
.feature-icon.amber { background: rgba(245,158,11,0.2); color: #fcd34d; }
.feature-icon.purple { background: rgba(139,92,246,0.2); color: #c4b5fd; }
.feature h3 { font-size: 16px; font-weight: 600; margin-bottom: 7px; }
.feature p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* Stats band */
.stats-band {
    padding: 48px 24px;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(236,72,153,0.08));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stats-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    text-align: center;
}
.stat-num {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -1px;
    background: linear-gradient(135deg,#fff,#c7d2fe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.stat-lbl { color: var(--text-2); font-size: 14px; margin-top: 8px; }

/* Pricing */
.pricing-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 24px;
}
.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px;
    position: relative;
}
.price-card.featured {
    border-color: rgba(99,102,241,0.5);
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.05));
}
.price-card .tag {
    position: absolute;
    top: -12px;
    right: 24px;
    background: linear-gradient(135deg,var(--primary),var(--primary-2));
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 999px;
    font-weight: 500;
}
.price-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.price-card .price {
    font-size: 44px;
    font-weight: 600;
    letter-spacing: -1.5px;
    margin: 16px 0 4px;
}
.price-card .price .per { font-size: 14px; color: var(--text-2); font-weight: 400; }
.price-card .tagline { color: var(--text-2); font-size: 13px; margin-bottom: 24px; }
.price-card ul { list-style: none; padding: 0; margin-bottom: 28px; }
.price-card li { padding: 8px 0; font-size: 14px; color: var(--text-2); display: flex; align-items: center; gap: 10px; }
.price-card li::before { content:'✓'; color: #6ee7b7; font-weight: 700; }
.price-card .btn { width: 100%; justify-content: center; }

/* Reviews */
.review-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}
.review {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
}
.review .stars { color: #fbbf24; font-size: 14px; margin-bottom: 10px; letter-spacing: 2px; }
.review .body { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 16px; }
.review .meta { display: flex; align-items: center; gap: 10px; }
.review .avt {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg,var(--primary),var(--pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}
.review .who .n { font-size: 13px; font-weight: 500; }
.review .who .r { font-size: 12px; color: var(--text-3); }

/* Footer */
footer {
    padding: 48px 24px 32px;
    border-top: 1px solid var(--border);
    color: var(--text-3);
    font-size: 13px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 32px;
}
.footer-inner h5 { color: var(--text); font-size: 14px; font-weight: 500; margin-bottom: 14px; }
.footer-inner a { display: block; padding: 4px 0; transition: color 0.2s; }
.footer-inner a:hover { color: var(--text); }
.footer-bot {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .nav { padding: 16px 20px; }
    .nav-links { gap: 12px; }
    .nav-links a:not(.btn) { display: none; }
}

/* Auth pages */
.auth-wrap {
    min-height: calc(100vh - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 36px 32px;
}
.auth-card h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 6px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--text-2); margin-bottom: 28px; font-size: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.form-control {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    transition: all 0.2s;
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}
.form-control::placeholder { color: var(--text-3); }
.auth-card .foot { text-align: center; margin-top: 20px; color: var(--text-2); font-size: 13px; }
.auth-card .foot a { color: #a5b4fc; font-weight: 500; }
.alert {
    padding: 11px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
}
.alert-error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }

/* Dashboard layout */
.app { display: flex; min-height: 100vh; }
.sidebar {
    width: 240px;
    background: rgba(255,255,255,0.02);
    border-right: 1px solid var(--border);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: sticky;
    top: 40px;
    height: calc(100vh - 40px);
    overflow-y: auto;
}
.sidebar .brand {
    font-size: 18px; font-weight: 600;
    padding: 8px 12px 24px;
    display: flex; align-items: center; gap: 8px;
}
.sidebar a.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}
.sidebar a.nav-item:hover { background: var(--surface); color: var(--text); }
.sidebar a.nav-item.active {
    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.15));
    color: #fff;
    border: 1px solid rgba(99,102,241,0.25);
}
.sidebar a.nav-item .ic { width: 16px; text-align: center; font-size: 13px; }
.sidebar .spacer { flex: 1; }
.sidebar .user-pill {
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar .user-pill .info { flex: 1; min-width: 0; }
.sidebar .user-pill .n { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .user-pill .e { font-size: 11px; color: var(--text-3); }
.avatar-circle {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg,var(--primary),var(--pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}
.main {
    flex: 1;
    padding: 24px 32px;
    min-width: 0;
}
.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 14px;
}
.page-head h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.5px; }
.page-head p { color: var(--text-2); font-size: 14px; margin-top: 4px; }

/* Dashboard stat cards */
.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
}
.stat-card .lbl { color: var(--text-2); font-size: 12px; font-weight: 500; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card .val { font-size: 28px; font-weight: 600; letter-spacing: -0.5px; }
.stat-card .sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.stat-card .up { color: #6ee7b7; }
.stat-card .down { color: #fca5a5; }

/* Virtual card grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
    margin-top: 8px;
}
.card-slot {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.2s;
}
.card-slot:hover { border-color: var(--border-2); transform: translateY(-2px); }
.card-slot .vcard {
    animation: none;
    transform: none;
    width: 100%;
    height: 200px;
    margin-bottom: 14px;
    box-shadow: 0 10px 30px -10px rgba(99,102,241,0.3);
}
.card-slot .vcard .vcard-num { font-size: 17px; }
.card-slot .info-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.card-slot .info-row .k { color: var(--text-3); }
.card-slot .info-row .v { font-weight: 500; }
.card-slot .actions { display: flex; gap: 8px; margin-top: 12px; }
.card-slot .actions .btn { flex: 1; padding: 8px 12px; font-size: 13px; }

/* Table */
.tbl {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}
.tbl thead th {
    text-align: left;
    padding: 14px 18px;
    font-size: 11px;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}
.tbl tbody td {
    padding: 14px 18px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: rgba(255,255,255,0.02); }

.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}
.badge-green { background: rgba(16,185,129,0.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.25); }
.badge-red   { background: rgba(239,68,68,0.15);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.25); }
.badge-amber { background: rgba(245,158,11,0.15); color: #fcd34d; border: 1px solid rgba(245,158,11,0.25); }
.badge-blue  { background: rgba(99,102,241,0.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.25); }
.badge-pink  { background: rgba(236,72,153,0.15); color: #f9a8d4; border: 1px solid rgba(236,72,153,0.25); }

/* Utilities */
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.glass { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap { gap: 10px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.muted { color: var(--text-2); }
.h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; }
    .sidebar { width: 64px; padding: 20px 8px; }
    .sidebar .nav-item span:not(.ic) { display: none; }
    .sidebar .brand span { display: none; }
    .sidebar .user-pill .info { display: none; }
    .main { padding: 20px; }
}
