/* ==========================================================================
   RULLZYE TUNNEL VIP - COZY CYBER-DARK ANIMATED STYLESHEET
   HTTP Custom + Xray V2Ray + SSH All-In-One Client
   ========================================================================== */

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

:root {
  --bg-deep: #070a12;
  --bg-surface: #0e1322;
  --bg-card: rgba(18, 26, 44, 0.7);
  --bg-card-hover: rgba(26, 38, 64, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.3);
  
  --neon-cyan: #00f2fe;
  --neon-blue: #4facfe;
  --neon-green: #00f5a0;
  --neon-pink: #ff007f;
  --neon-purple: #7928ca;
  --neon-amber: #f59e0b;
  --neon-red: #ef4444;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --shadow-cozy: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-neon-cyan: 0 0 25px rgba(0, 242, 254, 0.35);
  --shadow-neon-green: 0 0 25px rgba(0, 245, 160, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(121, 40, 202, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Mobile App Wrapper */
.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: var(--bg-surface);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  padding-bottom: 85px;
}

@media (min-width: 481px) {
  .app-container {
    min-height: 92vh;
    height: 92vh;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    margin: 20px 0;
    overflow: hidden;
  }
}

/* App Header */
.app-header {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(14, 19, 34, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  box-shadow: var(--shadow-neon-cyan);
  animation: pulseLogo 3s infinite ease-in-out;
}

.brand-info h1 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #fff, var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-info .app-ver {
  font-size: 11px;
  color: var(--text-dim);
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Offline / Online Pill Badge */
.status-pill {
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 245, 160, 0.12);
  color: var(--neon-green);
  border: 1px solid rgba(0, 245, 160, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.status-pill.offline {
  background: rgba(245, 158, 11, 0.15);
  color: var(--neon-amber);
  border-color: rgba(245, 158, 11, 0.4);
}

.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: blinkDot 1.8s infinite;
}

/* Google Login Button & Avatar in Header */
.user-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--neon-cyan);
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.user-avatar-btn:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-neon-cyan);
}

.user-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tab Screens */
.app-screen {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 30px;
  display: none;
  animation: fadeInScreen 0.35s ease-out;
}

.app-screen.active {
  display: block;
}

/* ==========================================================================
   TAB 1: TUNNEL (HOME / HTTP CUSTOM CLIENT)
   ========================================================================== */

/* Server & Ping Banner */
.server-status-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-cozy);
}

.route-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.country-flag {
  font-size: 24px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.route-text .server-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.route-text .server-ip {
  font-size: 11px;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
}

.ping-badge {
  background: rgba(0, 245, 160, 0.1);
  color: var(--neon-green);
  border: 1px solid rgba(0, 245, 160, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Circular Connect Button (Hero) */
.connect-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 0 20px;
  position: relative;
}

.power-button-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ripple effect */
.ripple-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--neon-cyan);
  opacity: 0;
  pointer-events: none;
}

.power-button-wrap.connecting .ripple-ring,
.power-button-wrap.connected .ripple-ring {
  animation: rippleWaves 2.2s infinite ease-out;
}

.power-button-wrap.connected .ripple-ring {
  border-color: var(--neon-green);
}

/* Outer Tech Spinner */
.tech-spinner {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 242, 254, 0.4);
  animation: rotateTech 15s linear infinite;
}

.power-button-wrap.connected .tech-spinner {
  border-color: rgba(0, 245, 160, 0.5);
  animation: rotateTech 6s linear infinite;
}

/* Actual Circular Button */
.btn-power {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(145deg, #162238, #0b1220);
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 5;
}

.btn-power i {
  font-size: 38px;
  color: var(--text-dim);
  transition: all 0.3s ease;
}

.btn-power span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Button States */
.power-button-wrap.connecting .btn-power {
  border-color: var(--neon-amber);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.4);
}
.power-button-wrap.connecting .btn-power i {
  color: var(--neon-amber);
  animation: spinIcon 1.5s infinite linear;
}
.power-button-wrap.connecting .btn-power span {
  color: var(--neon-amber);
}

.power-button-wrap.connected .btn-power {
  border-color: var(--neon-green);
  box-shadow: var(--shadow-neon-green);
}
.power-button-wrap.connected .btn-power i {
  color: var(--neon-green);
  text-shadow: 0 0 15px var(--neon-green);
}
.power-button-wrap.connected .btn-power span {
  color: var(--neon-green);
}

/* Connection Status Text */
.connect-status-text {
  margin-top: 14px;
  text-align: center;
}

.connect-status-text .status-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.connect-status-text .status-desc {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Live Speedometer Gauges */
.speed-hub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}

.speed-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.speed-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.speed-card.down .speed-icon {
  background: rgba(0, 242, 254, 0.15);
  color: var(--neon-cyan);
}

.speed-card.up .speed-icon {
  background: rgba(121, 40, 202, 0.15);
  color: #c084fc;
}

.speed-info .label {
  font-size: 11px;
  color: var(--text-muted);
}

.speed-info .val {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
}

/* Protocol Selector Pills */
.protocol-selector {
  margin-bottom: 16px;
}

.section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.protocol-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.protocol-pills::-webkit-scrollbar { display: none; }

.proto-btn {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.proto-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.proto-btn.active {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  color: #040812;
  border-color: var(--neon-cyan);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
}

/* Config Input Card (HTTP Custom Style) */
.config-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}
.form-group:last-child { margin-bottom: 0; }

.form-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.app-input {
  background: rgba(10, 15, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: #fff;
  font-size: 13px;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.app-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.payload-textarea {
  min-height: 65px;
  resize: vertical;
  font-size: 11px;
}

/* Quick Payload Presets */
.payload-preset-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.preset-chip {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--neon-cyan);
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-chip:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--neon-cyan);
}

/* Live Terminal Log Console */
.log-console-card {
  background: #050810;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  max-height: 160px;
  overflow-y: auto;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
}

.log-entry {
  line-height: 1.6;
  color: #94a3b8;
  word-break: break-all;
  animation: fadeIn 0.2s ease-in;
}

.log-entry.ok { color: var(--neon-green); }
.log-entry.info { color: var(--neon-cyan); }
.log-entry.warn { color: var(--neon-amber); }
.log-entry.err { color: var(--neon-red); }

/* ==========================================================================
   TAB 2: AKUN SAYA (GOOGLE LOGIN & PURCHASED ACCOUNTS)
   ========================================================================== */

.google-auth-card {
  background: linear-gradient(145deg, rgba(26, 38, 64, 0.8), rgba(14, 20, 36, 0.8));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-cozy);
  margin-bottom: 20px;
}

.google-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 26px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.google-auth-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.google-auth-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.btn-google-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: #1f2937;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
  width: 100%;
}

.btn-google-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Logged-in Profile Banner */
.user-profile-banner {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(121, 40, 202, 0.15));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.user-profile-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--neon-cyan);
  object-fit: cover;
}

.user-details h4 {
  font-size: 15px;
  font-weight: 700;
}

.user-details .email {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-logout {
  background: rgba(239, 68, 68, 0.15);
  color: var(--neon-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

/* Purchased Account Card */
.account-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.account-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.account-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.proto-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 242, 254, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.expiry-tag {
  font-size: 11px;
  color: var(--neon-green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.account-creds {
  background: rgba(6, 10, 20, 0.6);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  margin-bottom: 14px;
  color: #cbd5e1;
}

.account-creds .cred-line {
  margin-bottom: 4px;
}
.account-creds .cred-line:last-child { margin-bottom: 0; }
.account-creds b { color: var(--neon-cyan); }

/* Master Action: Load into App */
.btn-load-app {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  border: none;
  border-radius: var(--radius-sm);
  color: #040812;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
  transition: all 0.25s ease;
}

.btn-load-app:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
}

.account-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.btn-sub-action {
  padding: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-sub-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ==========================================================================
   TAB 3: TOKO VIP (IN-APP STORE WITH FLOWIX QRIS)
   ========================================================================== */

.store-hero-banner {
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
  border: 1px solid rgba(121, 40, 202, 0.4);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.store-hero-banner h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.store-hero-banner p {
  font-size: 12px;
  color: #cbd5e1;
}

.product-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  transition: all 0.25s ease;
}

.product-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.product-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.product-badges {
  display: flex;
  gap: 5px;
  margin-top: 4px;
}

.badge-micro {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.badge-micro.green { background: rgba(0, 245, 160, 0.15); color: var(--neon-green); }
.badge-micro.blue { background: rgba(0, 242, 254, 0.15); color: var(--neon-cyan); }

/* Duration selector inside product card */
.duration-selector {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin: 12px 0;
}

.duration-chip {
  padding: 7px 4px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.duration-chip .d-name { font-size: 11px; font-weight: 600; color: #cbd5e1; }
.duration-chip .d-price { font-size: 11px; font-weight: 700; color: var(--neon-cyan); margin-top: 2px; }

.duration-chip.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--neon-cyan);
}

.btn-buy-now {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: all 0.25s ease;
}

.btn-buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

/* ==========================================================================
   TAB 4: CONFIG & TOOLS (OFFLINE HUB & HC GENERATOR)
   ========================================================================== */

.tools-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}

.tools-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tools-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.btn-tool {
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-tool:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--neon-cyan);
}

/* Offline Storage Info */
.offline-stats-box {
  background: rgba(10, 15, 28, 0.8);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

/* ==========================================================================
   BOTTOM APP NAVIGATION BAR
   ========================================================================== */

.app-navbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(10, 15, 28, 0.94);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 0 6px;
  z-index: 50;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  height: 100%;
}

.nav-item i {
  font-size: 19px;
  transition: transform 0.25s, color 0.25s;
}

.nav-item.active {
  color: var(--neon-cyan);
}

.nav-item.active i {
  transform: translateY(-3px);
  color: var(--neon-cyan);
  text-shadow: 0 0 12px var(--neon-cyan);
}

/* ==========================================================================
   MODALS (QRIS & GOOGLE LOGIN)
   ========================================================================== */

.app-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease-out;
}

.app-modal-overlay.active {
  display: flex;
}

.app-modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 24px;
  box-shadow: var(--shadow-cozy);
  position: relative;
  animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toast Notifications */
.cozy-toast {
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--neon-cyan);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cozy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   ANIMATIONS KEYFRAMES
   ========================================================================== */

@keyframes rippleWaves {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

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

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

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); box-shadow: 0 0 15px rgba(0, 242, 254, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 25px rgba(0, 242, 254, 0.6); }
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes fadeInScreen {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
