:root {
  --bg-color: #0b0c10;
  --card-bg: #12141c;
  --border-color: #232736;
  --text-main: #e0e6ed;
  --text-muted: #8a99ad;
  --accent-pink: #fe2c55;
  --accent-green: #00e676;
  --accent-blue: #00b0ff;
  --accent-purple: #9c27b0;
  --accent-yellow: #ffb300;
  --accent-red: #ff3d00;
  --font-family: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: var(--font-family); }

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hidden { display: none !important; }

/* Auth Login & Tab Switcher */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(circle at center, #1a1e2d 0%, #0b0c10 100%);
  padding: 20px;
}

.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 35px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.auth-tabs {
  display: flex;
  gap: 6px;
  background: #171924;
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab-btn.active {
  background: var(--accent-pink);
  color: #fff;
  box-shadow: 0 2px 10px rgba(254, 44, 85, 0.3);
}

.brand { text-align: center; margin-bottom: 20px; }
.brand-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(254, 44, 85, 0.4));
}
.nav-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 6px;
}
.brand-icon { font-size: 38px; display: block; margin-bottom: 8px; }
.brand h2 { font-size: 20px; font-weight: 700; color: #fff; }
.brand p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: #181b26;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent-pink);
  box-shadow: 0 0 8px rgba(254, 44, 85, 0.2);
}

/* Buttons */
.btn {
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-primary { background: var(--accent-pink); color: white; }
.btn-primary:hover { background: #e02447; }
.btn-success { background: #00c853; color: white; }
.btn-success:hover { background: #00e676; }
.btn-secondary { background: #232736; color: var(--text-main); }
.btn-secondary:hover { background: #2d3246; }
.btn-danger { background: #d32f2f; color: white; }
.btn-danger:hover { background: #f44336; }
.btn-warning { background: #f57c00; color: white; }
.btn-warning:hover { background: #ff9800; }
.btn-info { background: #00b0ff; color: #000; font-weight: 700; }
.btn-info:hover { background: #40c4ff; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 10px; font-size: 11px; }

.alert {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 15px;
}
.alert-danger { background: rgba(255, 61, 0, 0.15); border: 1px solid var(--accent-red); color: #ff6e40; }
.alert-success { background: rgba(0, 230, 118, 0.15); border: 1px solid var(--accent-green); color: #00e676; }
.alert-info { background: rgba(0, 176, 255, 0.15); border: 1px solid var(--accent-blue); color: #00b0ff; }

/* Dashboard Layout */
.dashboard-container { display: flex; flex-direction: column; min-height: 100vh; }
.navbar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.brand-title { font-size: 16px; font-weight: 700; color: #fff; }
.brand-title small { font-size: 11px; color: var(--accent-pink); font-weight: 500; display: block; }
.nav-user { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; }

.content { padding: 30px; flex: 1; max-width: 1300px; margin: 0 auto; width: 100%; }

/* Stats Cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 25px; }
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.border-green { border-left: 4px solid var(--accent-green); }
.border-yellow { border-left: 4px solid var(--accent-yellow); }
.border-red { border-left: 4px solid var(--accent-red); }
.border-purple { border-left: 4px solid var(--accent-purple); }
.border-blue { border-left: 4px solid var(--accent-blue); }

.stat-icon { font-size: 28px; }
.stat-value { font-size: 24px; font-weight: 700; color: #fff; display: block; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* Action Bar */
.action-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 15px; }
.search-box { flex: 1; max-width: 400px; }
.search-box input {
  width: 100%;
  padding: 10px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
}

/* Table */
.table-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; margin-bottom: 25px; }
.card-header { padding: 18px 20px; border-bottom: 1px solid var(--border-color); font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.table th { background: #171a26; padding: 12px 18px; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border-color); }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--border-color); color: var(--text-main); vertical-align: middle; }
.table tbody tr:hover { background: #161924; }

.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
}
.badge-active { background: rgba(0, 230, 118, 0.15); color: #00e676; border: 1px solid #00e676; }
.badge-expired { background: rgba(255, 179, 0, 0.15); color: #ffb300; border: 1px solid #ffb300; }
.badge-suspended { background: rgba(255, 61, 0, 0.15); color: #ff3d00; border: 1px solid #ff3d00; }
.badge-screens { background: rgba(0, 176, 255, 0.15); color: #00b0ff; border: 1px solid #00b0ff; }
.badge-trial { background: rgba(124, 77, 255, 0.15); color: #9c6dff; border: 1px solid #7c4dff; }

.key-code { font-family: monospace; background: #181b26; padding: 4px 8px; border-radius: 4px; color: var(--accent-blue); font-weight: 600; }
.hwid-code { font-family: monospace; font-size: 11px; color: var(--text-muted); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Customer Portal Specific Styles */
.customer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
@media (max-width: 768px) { .customer-grid { grid-template-columns: 1fr; } }

.customer-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}
.customer-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; color: #fff; display: flex; align-items: center; gap: 8px; }

.license-box {
  background: #181b26;
  border: 1px solid #00b0ff;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0;
}
.license-key-val { font-family: monospace; font-size: 18px; font-weight: 800; color: #00b0ff; letter-spacing: 1px; }

.screen-usage-box {
  background: #0d2318;
  border: 1px solid #00e676;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  margin: 15px 0;
}
.screen-count { font-size: 32px; font-weight: 800; color: #00e676; display: block; }
.screen-label { font-size: 12px; color: #aaa; text-transform: uppercase; font-weight: 600; }

.plan-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 15px; }
.plan-upgrade-card {
  background: #181b26;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}
.plan-upgrade-card:hover { border-color: var(--accent-pink); transform: translateY(-2px); }
.plan-upgrade-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.plan-upgrade-screens { font-size: 13px; color: #00b0ff; font-weight: 600; margin-bottom: 10px; }
.plan-upgrade-price { font-size: 22px; font-weight: 800; color: var(--accent-green); margin-bottom: 12px; }

/* Modals */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  padding: 25px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}
.modal-lg { max-width: 850px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 12px; }
.close-btn { background: none; border: none; font-size: 24px; color: var(--text-muted); cursor: pointer; }
.close-btn:hover { color: white; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.modal-body { max-height: 70vh; overflow-y: auto; padding-right: 4px; }

/* Trial Option */
.btn-trial { background: linear-gradient(135deg, #6200ea, #7c4dff); color: white; }
.btn-trial:hover { background: linear-gradient(135deg, #7c4dff, #9c6dff); }

.trial-option { cursor: pointer; }
.trial-option input { display: none; }
.trial-card {
  background: #181b26;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}
.trial-option input:checked + .trial-card {
  border-color: #7c4dff;
  background: rgba(124, 77, 255, 0.15);
  box-shadow: 0 0 15px rgba(124, 77, 255, 0.3);
}
.trial-days { font-size: 36px; font-weight: 800; color: #fff; display: block; }
.trial-label { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }

/* Webhook Info */
.webhook-section {
  background: #181b26;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
}
.webhook-platform {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.platform-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.webhook-platform.cakto .platform-badge { background: #ff6f00; color: #fff; }
.webhook-platform.hotmart .platform-badge { background: #c62828; color: #fff; }
.webhook-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.6; }
.webhook-url-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0b0c10;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 10px;
}
.webhook-url-box code { font-family: monospace; color: var(--accent-blue); font-size: 13px; flex: 1; word-break: break-all; }
.webhook-events { margin-top: 8px; }
.webhook-events strong { font-size: 12px; color: var(--text-muted); display: block; margin-bottom: 6px; }
.event-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.event-tag { background: rgba(0, 176, 255, 0.1); color: var(--accent-blue); border: 1px solid rgba(0, 176, 255, 0.3); border-radius: 4px; padding: 3px 8px; font-size: 11px; font-family: monospace; }
.webhook-logic { list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.webhook-logic li { font-size: 13px; color: var(--text-main); }

/* ==================== REMODELAGEM DO PORTAL DO ASSINANTE ==================== */

/* Hero Banner Download */
.hero-download-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 50%, #1e293b 100%);
  border: 1px solid rgba(254, 44, 85, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(254, 44, 85, 0.15);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  position: relative;
  overflow: hidden;
}

.hero-download-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(254, 44, 85, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { flex: 1; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(254, 44, 85, 0.2);
  color: #fe2c55;
  border: 1px solid rgba(254, 44, 85, 0.4);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-content h2 { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 10px; line-height: 1.3; }
.hero-content p { color: #cbd5e1; font-size: 14px; margin-bottom: 18px; max-width: 650px; line-height: 1.5; }

.hero-info-pills { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-info-pills span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 500;
}

.hero-action { text-align: center; z-index: 1; min-width: 260px; }
.version-label { font-size: 13px; color: #94a3b8; margin-bottom: 10px; }
.version-label strong { color: #38bdf8; }

.btn-download-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, #fe2c55 0%, #d91b42 100%);
  color: #fff;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(254, 44, 85, 0.4);
  transition: all 0.3s ease;
}

.btn-download-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(254, 44, 85, 0.6);
  background: linear-gradient(135deg, #ff3b63 0%, #e0244b 100%);
}

.btn-download-hero .icon { font-size: 28px; }
.btn-download-hero .btn-text { text-align: left; }
.btn-download-hero .btn-text strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.2; }
.btn-download-hero .btn-text small { display: block; font-size: 11px; opacity: 0.85; font-weight: 400; }

/* Notificações Dropdown */
.notif-bell-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 18px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
}
.notif-bell-btn:hover { background: rgba(255, 255, 255, 0.15); }

.notif-count-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #fe2c55;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  border: 2px solid #0f172a;
}

.notif-dropdown {
  position: absolute;
  top: 45px;
  right: 0;
  width: 340px;
  background: #1e293b;
  border: 1px solid #334155;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  z-index: 100;
  overflow: hidden;
}

.notif-header {
  padding: 12px 16px;
  background: #0f172a;
  border-bottom: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}
.notif-item:last-child { border-bottom: none; }
.notif-item.empty { text-align: center; color: #64748b; padding: 20px; font-size: 12px; }
.notif-item-title { font-weight: 700; color: #38bdf8; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.notif-item-msg { color: #cbd5e1; font-size: 12px; line-height: 1.4; }

/* Visual Progress Bar de Telas */
.screen-progress-container { margin-top: 15px; }
.screen-usage-counter { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: #334155;
  border-radius: 5px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00e676 0%, #00b0ff 100%);
  border-radius: 5px;
  transition: width 0.4s ease;
}

/* Central de Tutoriais */
.tutorials-section { margin-top: 40px; }
.section-header { margin-bottom: 20px; }
.section-header h2 { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.section-header p { color: #94a3b8; font-size: 13px; }

.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.tutorial-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.tutorial-card:hover {
  transform: translateY(-4px);
  border-color: #38bdf8;
}

.tutorial-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #0f172a;
}
.tutorial-thumb-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.tutorial-play-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.tutorial-card:hover .tutorial-play-overlay {
  background: rgba(15, 23, 42, 0.2);
}
.play-btn-circle {
  width: 54px;
  height: 54px;
  background: #fe2c55;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 15px rgba(254, 44, 85, 0.6);
}

.tutorial-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.tutorial-cat {
  font-size: 10px;
  font-weight: 800;
  color: #00e676;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.tutorial-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; line-height: 1.3; }
.tutorial-desc { font-size: 12px; color: #94a3b8; line-height: 1.5; margin-bottom: 15px; flex: 1; }

.tutorial-footer { display: flex; gap: 8px; }

/* Responsive Video Modal */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: 0 0 12px 12px;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Card "Seu Plano" Customizado (Idêntico à Imagem do Usuário) */
.plan-card-styled {
  background: #111322 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 24px !important;
}

.plan-card-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-plan-highlight-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 20px;
}

.plan-title-bold {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.plan-sub-desc {
  font-size: 13px;
  color: #8a99ad;
  margin: 0;
}

.plan-price-right {
  text-align: right;
}

.plan-price-val {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  display: block;
}

.plan-price-period {
  font-size: 12px;
  color: #8a99ad;
}

.btn-gradient-upgrade {
  width: 100%;
  background: linear-gradient(90deg, #5b5ff5 0%, #ec4899 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(91, 95, 245, 0.35);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-gradient-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.45);
  filter: brightness(1.1);
}

/* Animação do Sino de Notificação */
@keyframes bellRinging {
  0% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-14deg); }
  45% { transform: rotate(10deg); }
  60% { transform: rotate(-10deg); }
  75% { transform: rotate(4deg); }
  85% { transform: rotate(-4deg); }
  100% { transform: rotate(0); }
}

.notif-bell-btn.has-unread {
  animation: bellRinging 2s infinite ease-in-out;
  border-color: #fe2c55;
  box-shadow: 0 0 15px rgba(254, 44, 85, 0.5);
}

/* Tooltip Popup Flutuante */
.notif-tooltip-popup {
  position: absolute;
  top: 50px;
  right: 0;
  background: linear-gradient(135deg, #fe2c55 0%, #7c3aed 100%);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 25px rgba(254, 44, 85, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 101;
  animation: popupBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  cursor: pointer;
}

.notif-tooltip-popup::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 18px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #fe2c55;
}

.tooltip-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}
.tooltip-close:hover { color: #fff; }

@keyframes popupBounce {
  0% { opacity: 0; transform: translateY(-10px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsividade Mobile Completa */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .nav-brand .brand-title {
    font-size: 16px;
  }
  .nav-user {
    width: 100%;
    justify-content: space-between;
  }
  .nav-cust-name {
    font-size: 13px;
  }
  .hero-download-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 20px;
  }
  .hero-content h2 {
    font-size: 20px;
  }
  .hero-info-pills {
    justify-content: center;
  }
  .hero-action {
    width: 100%;
    min-width: unset;
  }
  .btn-download-hero {
    width: 100%;
  }
  .customer-grid {
    grid-template-columns: 1fr;
  }
  .current-plan-highlight-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .plan-price-right {
    text-align: left;
  }
  .tutorials-grid {
    grid-template-columns: 1fr;
  }
  .modal-content {
    width: 95% !important;
    padding: 16px !important;
    margin: 10px auto;
  }
  .hwid-detail-item {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 18px;
  }
  .btn-download-hero .btn-text strong {
    font-size: 13px;
  }
  .license-box {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .license-key-val {
    word-break: break-all;
    font-size: 14px;
    text-align: center;
  }
}

