/* ============================================
   VVQ_CUSTOM — Full Sakura UI + Modals + Tickets
   ============================================ */

:root {
  --bg: #0a0510;
  --bg-2: #140a1c;
  --card: rgba(26, 16, 36, 0.6);
  --border: rgba(255, 110, 153, 0.15);
  --accent: #ff6e99;
  --accent-2: #c084fc;
  --accent-glow: rgba(255, 110, 153, 0.4);
  --text: #ffffff;
  --muted: #9ca3af;
  --ok: #4ade80;
  --radius: 16px;
}

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

html {
  background: var(--bg); color: var(--text);
  font-family: "Inter", system-ui, sans-serif; line-height: 1.6; scroll-behavior: smooth;
}

body {
  position: relative; min-height: 100vh; overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #1c0a1a 0%, var(--bg) 70%);
}

a { text-decoration: none; color: inherit; }
.gradient-text { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Petals */
.petals { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.petal { position: absolute; top: -5vh; background: radial-gradient(ellipse at 35% 30%, #ffb7c5 0%, #ff6e99 60%, #b03555 100%); border-radius: 70% 30% 65% 35% / 55% 65% 35% 45%; box-shadow: inset 0 0 4px rgba(255,255,255,0.4), 0 0 10px var(--accent-glow); animation: petalFall linear infinite; }
@keyframes petalFall { 0% { transform: translate(0, -5vh) rotate(0deg); opacity: 0; } 10% { opacity: 0.8; } 90% { opacity: 0.8; } 100% { transform: translate(var(--sway, 60px), 105vh) rotate(360deg); opacity: 0; } }

/* Buttons */
.btn-primary, .btn-outline { border: none; border-radius: 50px; cursor: pointer; font-weight: 700; padding: 12px 24px; font-size: 0.95rem; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 25px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 30px var(--accent-glow); }
.btn-outline { background: rgba(255,255,255,0.03); color: var(--text); border: 1px solid var(--border); backdrop-filter: blur(10px); }
.btn-outline:hover { background: rgba(255, 110, 153, 0.1); border-color: var(--accent); transform: translateY(-2px); }
.btn-primary.small, .btn-outline.small { padding: 8px 16px; font-size: 0.8rem; border-radius: 8px; }

/* Nav & Hero */
.nav { display: flex; justify-content: space-between; align-items: center; padding: 24px 48px; position: relative; z-index: 10; }
.logo { font-weight: 800; font-size: 1.4rem; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 600; transition: 0.2s; }
.nav-links a:hover { color: var(--text); }
.hero { text-align: center; padding: 120px 24px 80px; max-width: 900px; margin: 0 auto; position: relative; z-index: 10; }
.hero-badge { display: inline-block; padding: 8px 16px; background: rgba(255, 110, 153, 0.1); border: 1px solid var(--border); border-radius: 50px; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 24px; color: var(--accent); }
.hero h1 { font-size: 4rem; line-height: 1.1; letter-spacing: -2px; margin-bottom: 24px; font-weight: 800; }
.hero .sub { color: var(--muted); font-size: 1.2rem; margin-bottom: 40px; max-width: 600px; margin-inline: auto; }

/* Features & Modules */
.features-section { padding: 40px 24px 80px; position: relative; z-index: 10; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; backdrop-filter: blur(12px); transition: 0.3s; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(255, 110, 153, 0.1); }
.f-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 12px; color: var(--text); }
.feature-card p { color: var(--muted); font-size: 0.9rem; }
.modules-section { padding: 80px 24px; max-width: 1100px; margin: 0 auto; position: relative; z-index: 10; }
.modules-section h2 { text-align: center; font-size: 2.5rem; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 48px; }
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.module-card { background: rgba(255,255,255,0.02); border: 1px solid var(--border); padding: 16px; border-radius: 10px; display: flex; flex-direction: column; transition: 0.2s; }
.module-card:hover { background: rgba(255, 110, 153, 0.05); border-color: var(--accent); }
.mod-cat { font-size: 0.65rem; text-transform: uppercase; color: var(--accent); font-weight: 800; letter-spacing: 1px; margin-bottom: 4px; }
.mod-name { font-weight: 600; font-size: 0.95rem; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 800px; margin: 40px auto 100px; padding: 0 24px; position: relative; z-index: 10; }
.plan { background: var(--card); border: 1px solid var(--border); padding: 40px; border-radius: var(--radius); backdrop-filter: blur(12px); position: relative; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 40px var(--accent-glow); background: linear-gradient(180deg, rgba(255, 110, 153, 0.05) 0%, var(--card) 100%); }
.plan .tag { position: absolute; top: -14px; right: 24px; background: var(--accent); color: #0a0510; font-size: 0.75rem; font-weight: 800; padding: 4px 16px; border-radius: 50px; }
.plan h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--muted); font-weight: 600; }
.plan.featured h3 { color: var(--accent); }
.plan .price { font-size: 2.5rem; font-weight: 800; margin-bottom: 24px; }
.plan .price span { font-size: 1rem; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; }
.plan li { padding: 8px 0; color: var(--muted); font-size: 0.95rem; }
.plan li::before { content: "🌸 "; }

/* Dashboard Layout */
.dash { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; position: relative; z-index: 10; }
.sidebar { background: var(--bg-2); border-right: 1px solid var(--border); padding: 32px 24px; display: flex; flex-direction: column; }
.sidebar .logo { margin-bottom: 40px; }
.sidebar-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; font-weight: 800; letter-spacing: 1px; margin-bottom: 12px; margin-top: 24px; }
.sidebar nav { display: flex; flex-direction: column; gap: 8px; }
.sidebar nav a { padding: 12px 16px; border-radius: 10px; color: var(--muted); font-size: 0.95rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: 0.2s; }
.sidebar nav a:hover { background: rgba(255,255,255,0.03); color: var(--text); }
.sidebar nav a.active { background: rgba(255, 110, 153, 0.1); color: var(--accent); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; }
.sidebar-bottom { margin-top: auto; }
.user-block { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.02); padding: 16px; border-radius: 12px; border: 1px solid var(--border); }
.user-info { display: flex; flex-direction: column; }
.u-name { font-weight: 700; font-size: 0.95rem; }
.u-tier { font-size: 0.75rem; color: var(--accent); font-weight: 800; text-transform: uppercase; }

.content { padding: 48px; max-width: 1200px; }
.content header { margin-bottom: 40px; }
.content header h2 { font-size: 2rem; letter-spacing: -1px; }
.tab { display: none; animation: fadeUp 0.4s ease; }
.tab.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; margin-bottom: 24px; backdrop-filter: blur(12px); }
.card h3 { font-size: 1.2rem; margin-bottom: 24px; color: var(--text); font-weight: 700; }

/* Dashboard Specifics */
.download-card { display: flex; justify-content: space-between; align-items: center; }
.dl-info h3 { margin-bottom: 8px; }
.dl-info p { font-size: 0.9rem; color: var(--muted); }
.badge-sm { background: rgba(255, 110, 153, 0.15); padding: 4px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; color: var(--accent); margin-left: 8px; }

/* Inputs */
textarea, input[type="text"], select { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 12px; color: var(--text); padding: 16px; font-family: inherit; margin-bottom: 16px; resize: vertical; min-height: 50px; }
textarea:focus, input[type="text"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 15px var(--accent-glow); }

/* Reveal Animation */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.features-grid .feature-card:nth-child(1) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.3s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.4s; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(10, 5, 15, 0.85); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 9999; opacity: 0; pointer-events: none; transition: 0.3s; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box { background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px; padding: 40px 32px; width: 90%; max-width: 480px; text-align: center; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(255, 110, 153, 0.15); transform: translateY(20px); transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-close { position: absolute; top: 16px; right: 20px; background: none; border: none; color: var(--muted); font-size: 2rem; cursor: pointer; transition: 0.2s; }
.modal-close:hover { color: var(--accent); }
.modal-icon { width: 60px; height: 60px; background: rgba(255, 110, 153, 0.1); border: 1px solid var(--border); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 20px; color: var(--accent); box-shadow: 0 0 20px rgba(255, 110, 153, 0.2); }
.modal-box h2 { font-size: 1.6rem; margin-bottom: 8px; color: #fff; }
.modal-box p { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; }
.os-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.os-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 12px; padding: 20px 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: 0.2s; color: #fff; font-family: inherit; }
.os-card:hover { background: rgba(255, 110, 153, 0.1); border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(255, 110, 153, 0.15); }
.os-emoji { font-size: 2rem; }
.os-name { font-weight: 700; font-size: 0.9rem; }
.modal-footer-text { font-size: 0.8rem; color: var(--muted); margin-bottom: 0 !important; }

/* Admin Upload Form */
.upload-form { display: flex; flex-direction: column; gap: 24px; }
.input-group { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.input-group label { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.file-drop { background: rgba(0,0,0,0.2); border: 2px dashed var(--border); border-radius: 12px; padding: 20px; text-align: center; position: relative; transition: 0.2s; }
.file-drop:hover { border-color: var(--accent); background: rgba(255, 110, 153, 0.05); }
.file-drop span { display: block; font-weight: 600; margin-bottom: 8px; }
.file-drop input[type="file"] { font-size: 0.8rem; color: var(--muted); width: 100%; }
.file-drop input[type="file"]::file-selector-button { background: var(--accent); color: #000; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-weight: 600; margin-right: 10px; }

/* Tickets */
.ticket-list { display: flex; flex-direction: column; gap: 16px; }
.ticket-item { background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.ticket-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ticket-header h4 { font-size: 1.1rem; color: var(--text); }
.badge { padding: 4px 10px; border-radius: 50px; font-size: 0.7rem; font-weight: 800; }
.badge-open { background: rgba(255, 110, 153, 0.2); color: var(--accent); }
.badge-replied { background: rgba(74, 222, 128, 0.2); color: var(--ok); }
.ticket-reply { background: rgba(255, 255, 255, 0.05); border-left: 3px solid var(--accent); padding: 10px 16px; border-radius: 0 8px 8px 0; margin-top: 12px; }
.ticket-reply p { font-size: 0.9rem; color: var(--text); margin-bottom: 4px; }

/* Responsive */
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .nav { flex-direction: column; gap: 20px; }
  .hero h1 { font-size: 2.5rem; }
  .os-grid { grid-template-columns: 1fr; }
  .modal-box { padding: 30px 20px; }
}

/* Closed Ticket Badge */
.badge-closed {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}