/* ========================================
   LinkShort - Dark Theme with Neon Accents
   ======================================== */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #151515;
    --neon-green: #00ff88;
    --neon-green-dark: #00cc6a;
    --neon-blue: #00aaff;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #888888;
    --border-color: #333333;
    --danger: #ff4444;
    --warning: #ffaa00;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

/* ========================================
   Header/Navigation
   ======================================== */
.header-nav {
    position: sticky;
    top: 0;
    background: rgba(16, 16, 16, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    position: relative;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--neon-green);
    text-decoration: none;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.24rem 1.24rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    background: var(--bg-secondary);
    color: var(--neon-green);
}

/* Mobile Hamburger Menu */
.mobile-menu-btn {
    display: none !important;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus,
.mobile-menu-btn:active {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
}

.menu-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.hamburger, .hamburger::before, .hamburger::after {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--neon-green);
    border-radius: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.mobile-menu-btn.active .hamburger { background: transparent; }
.mobile-menu-btn.active .hamburger::before { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active .hamburger::after { transform: rotate(-45deg) translate(5px, -5px); }

/* ========================================
   Base Styles
   ======================================== */
.home-wrapper {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 10% 20%, rgba(0, 255, 136, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(0, 170, 255, 0.05) 0%, transparent 40%);
}

.container {
    background: var(--bg-card);
    border-radius: 0.5rem;
    padding: 50px;
    max-width: 960px;
    width: 100%;
    box-shadow: 0 25px 80px rgba(0, 255, 136, 0.15);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.container.stats-container {
    max-width: 960px;
    margin-top: 3rem;
}

.a-lnk {
    text-align: center;
    margin-top: 2rem;
}

.a-lnk-norm {
  color: var(--neon-green);
  text-decoration: none;
}

.a-lnk-dang {
  color: var(--danger);
  text-decoration: none;
}

.sec-p-text {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.rest-select {
  padding: 0.7rem;
  width: 100%;
}

/* ========================================
   Typography
   ======================================== */
h1 {
    color: var(--neon-green);
    margin-bottom: 15px;
    font-size: 3.5em;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    letter-spacing: -0.5px;
}

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

.tagline {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 35px;
    font-size: 1.2em;
}

/* ========================================
   Forms
   ======================================== */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

input[type="url"], input[type="text"], input[type="email"] {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
}

input[type="url"]::placeholder, input[type="text"]::placeholder, input[type="email"]::placeholder {
    color: var(--text-muted);
}

input:focus {
    outline: none !important;
    border-color: var(--neon-green) !important;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.2) !important;
}

#shortUrlInput {
    margin-bottom: 1rem;
}
   
/* ========================================
   Buttons
   ======================================== */
button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--neon-green) 0%, var(--neon-green-dark) 100%);
    color: #000;
    border: none;
    border-radius: 0.5rem;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.4);
}

button:active {
    transform: translateY(0);
}

.delete-btn, .copy-btn, .logout-btn {
    padding: 18px;
    border: none;
    border-radius: 0.5rem;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-btn {
    background: var(--danger);
    color: #000;
    margin-bottom: 1rem;
}

.delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 68, 68, 0.4);
}

.logout-btn {
    background: var(--danger);
    color: #000;
    margin-bottom: 1rem;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 68, 68, 0.4);
}

.export-btn {
    background: var(--neon-green);
    color: #000;
    padding: 0.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;	
}

.copy-btn {
    background: var(--neon-green);
    color: #000;
}

.copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

.actions {
    margin-top: 25px;
}

/* ========================================
   Result Box
   ======================================== */
.result-box {
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 25px;
    margin-top: 25px;
    display: none;
    border: 1px solid var(--border-color);
}

.result-box.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

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

.result-url {
    font-size: 20px;
    color: var(--neon-green);
    font-weight: 600;
    word-break: break-all;
    margin: 12px 0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.result-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.result-url-input {
    flex: 1;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--neon-green);
    font-family: 'JetBrains Mono', monospace;
    font-size: 17px;
    font-weight: 600;
}

.stats-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--neon-green);
    text-decoration: none;
    font-size: 15px;
}

/* ========================================
   Cards
   ======================================== */
.card {
    background: var(--bg-card);
    border-radius: 0.5rem;
    padding: 28px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.card table {
    width: 100%;
    background: var(--bg-card);
}

/* ========================================
   Stats Page / Search
   ======================================== */
.stats-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

.search-section {
    margin-bottom: 30px;
}

.search-section h1 {
    color: var(--neon-green);
    text-align: center;
    margin-bottom: 25px;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-form button {
    width: 100%;
}

.search-form input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.stat-box {
    background: linear-gradient(135deg, var(--neon-green) 0%, var(--neon-green-dark) 100%);
    color: #000;
    padding: 25px;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 255, 136, 0.25);
}

.stat-number {
    font-size: 2.8em;
    font-weight: 800;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

.back-link {
    display: inline-block;
    margin-bottom: 25px;
    color: var(--neon-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--neon-green-dark);
}

.long-url {
    color: var(--text-secondary);
    word-break: break-all;
    margin-bottom: 20px;
}

.short-url {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 18px;
    color: var(--neon-green);
}

.description-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

.date-filter {
    margin: 15px 0;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.date-filter input {
    padding: 18px 20px;
    margin-right: 10px;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.date-filter input:focus {
    outline: none !important;
    border-color: var(--neon-green) !important;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.2) !important;
}

.date-filter button {
    padding: 18px 20px;
    background: var(--neon-green);
    color: #000;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.date-filter button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.4);
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a, .pagination span {
    padding: 10px 16px;
    margin: 0 4px;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.pagination .current {
    background: var(--neon-green);
    color: #000;
    border-color: var(--neon-green);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--bg-secondary);
    color: var(--neon-green);
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

td {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

#linksTable th {
    background: var(--bg-secondary);
    color: var(--neon-green);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

#linksTable td {
    color: var(--text-secondary);
}

#linksTable td {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* ========================================
   Features Section (Homepage)
   ======================================== */
.features-section {
    margin: 80px 0;
}

.features-section h2 {
    color: var(--neon-green);
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.feature-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.1);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--neon-green);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item h3 {
    color: var(--neon-green);
    margin-bottom: 12px;
    margin-left: 0.8rem;
    font-size: 1.25em;
}

.feature-item p {
    color: var(--text-secondary);
    margin-left: 0.8rem;
}

/* How It Works Section */
.how-it-works {
    margin: 80px 0;
    text-align: center;
}

.how-it-works h2 {
    color: var(--neon-green);
    font-size: 2.2em;
    margin-bottom: 50px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-item {
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 35px 25px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateY(-8px);
    border-color: var(--neon-green);
}

.step-number {
    font-size: 3em;
    font-weight: 800;
    color: var(--neon-green);
    margin-bottom: 15px;
    opacity: 0.3;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--neon-green) 0%, var(--neon-green-dark) 100%);
    border-radius: 0.5rem;
    padding: 50px;
    text-align: center;
    margin: 80px 0;
}

.cta-section h2 {
    color: #000;
    font-size: 2em;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(0, 0, 0, 0.7);
    font-size: 1.1em;
    margin-bottom: 25px;
}

.cta-section .cta-button {
    background: #000;
    color: var(--neon-green);
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.cta-section .cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.faq-section {
    margin: 80px 0;
}

.faq-section h2 {
    color: var(--neon-green);
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 40px;
}

.faq-item {
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 25px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.faq-question {
    color: var(--neon-green);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.faq-answer {
    color: var(--text-secondary);
}

/* ========================================
   Login/Subscribe Forms
   ======================================== */
.login-form {
    margin-top: 30px;
}

.login-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-inline {
    display: inline;
}

.clear-filter {
    margin-left: 10px;
}

.login-link {
    color: var(--neon-green);
}

.login-form input,
.subscribe-form input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
    margin-bottom: 20px;
}

.login-form input::placeholder,
.subscribe-form input::placeholder {
    color: var(--text-muted);
}

.login-form input:focus,
.subscribe-form input:focus {
    outline: none !important;
    border-color: var(--neon-green) !important;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.2) !important;
}

.login-form button,
.subscribe-form button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--neon-green) 0%, var(--neon-green-dark) 100%);
    color: #000;
    border: none;
    border-radius: 0.5rem;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.login-form button:hover,
.subscribe-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.4);
}

/* Benefits list */
.benefits {
    margin: 35px 0;
}

.benefits h3 {
    color: var(--neon-green);
    margin-bottom: 15px;
}

.benefits ul {
    list-style: none;
}

.benefits li {
    margin: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-secondary);
}

.benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--neon-green);
    font-weight: bold;
}

/* Demo styling */
.paypal-placeholder {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 0.5rem;
    margin: 25px 0;
    border: 1px solid var(--border-color);
}

.paypal-placeholder h4 {
    color: var(--neon-green);
    margin-bottom: 12px;
}

.paypal-placeholder ol {
    margin-left: 20px;
    color: var(--text-secondary);
}

.paypal-placeholder li {
    margin: 8px 0;
}

.demo-note {
    color: var(--text-muted);
    margin-top: 10px;
}

.demo-note a {
    color: var(--neon-green);
    text-decoration: none;
}

.paypal-placeholder-text {
    color: var(--text-secondary);
}

.subscribe-container {
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Home Hero (index.php)
   ======================================== */
.home-hero {
    text-align: center;
}

.home-hero h1 {
    font-size: 3.5em;
    background: linear-gradient(135deg, var(--neon-green) 0%, var(--neon-green-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: -2px;
}

.home-hero .tagline {
    font-size: 1.4em;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.shorten-form {
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 45px;
    margin-bottom: 60px;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.4);
}

.form-icon {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
}

.form-icon span {
    font-size: 36px;
}

/* ========================================
   Admin Styles
   ======================================== */
.search-box {
    margin-bottom: 25px;
}

.search-box input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box input:focus,
.search-form input:focus {
    outline: none !important;
    border-color: var(--neon-green) !important;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.2) !important;
}

.bulk-actions {
    margin: 25px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.bulk-actions {
    padding: 14px 20px;
    margin-right: 10px;
    color: #000;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.bulk-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.4);
}

.checkbox-col {
    width: 30px;
}

.device-summary {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========================================
   Alerts/Messages
   ======================================== */
.alert-error {
    color: var(--danger);
}

.alert-success {
    color: var(--neon-green);
    font-weight: 600;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    text-align: center;
    padding: 35px;
    margin-top: 50px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    font-size: 14px;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 14px;
}

footer small,
.footer-small {
    color: #666;
}

/* ========================================
   Responsive
   ======================================== */
@media (min-width: 768px) {
    .header-content {
        justify-content: space-between;
        align-items: center;
    }

    .nav-links {
        display: flex;
        position: static;
        background: transparent;
        box-shadow: none;
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 2em; }
    .home-hero h1 { font-size: 2.2em; }
    .container { padding: 25px 15px; }
    .shorten-form { padding: 30px 20px; }
    .cta-section { padding: 35px 20px; }

    .header-content {
        padding: 0 15px;
        display: flex;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-menu-btn {
        display: block !important;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-secondary);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        z-index: 999;
        flex-direction: column;
        gap: 0.5rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links a {
        color: white;
        padding: 0.5rem;
        border-radius: 0.5rem;
        transition: background-color 0.2s;
    }

    .nav-links a:hover {
        background-color: rgba(255,255,255,0.1);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ========================================
   Donation Section
   ======================================== */
.donation-section {
    margin: 80px 0;
    text-align: center;
}

.donation-section h2 {
    color: var(--neon-green);
    font-size: 2.2em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.donation-section p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.paypal-buy-button {
    display: inline-block;
    margin: 20px 0;
    min-width: 250px;
}

.donation-placeholder-btn {
    background: linear-gradient(135deg, var(--neon-green) 0%, var(--neon-green-dark) 100%);
    color: #000;
    border: none;
    border-radius: 0.5rem;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    padding: 18px 36px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
}

.donation-placeholder-btn:hover {
    background: linear-gradient(135deg, #00ff88 0%, var(--neon-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.6);
    filter: brightness(1.1);
}

.nav-support-btn {
    background: linear-gradient(135deg, var(--neon-green) 0%, var(--neon-green-dark) 100%);
    color: #000 !important;
    border-radius: 0.5rem;
    font-weight: 700;
    padding: 10px 18px;
    box-shadow: 0 2px 10px rgba(0, 255, 136, 0.25);
}

.nav-support-btn:hover {
    background: #FF9600 !important;
    color: #000 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255, 255, 0, 0.4);
}

/* ========================================
   Install Page
   ======================================== */
.install-page {
    font-family: -apple-system, sans-serif;
    padding: 40px;
    background: #f5f5f5;
}

.install-box {
    background: white;
    padding: 30px;
    border-radius: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.install-success {
    color: #28a745;
}

.install-error {
    color: #dc3545;
}

.install-code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 0.5rem;
}

/* ========================================
   Subscription Modal (Subscriber Gate)
   ======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; 
    backdrop-filter: none; 
    z-index: 1000;
    display: none;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 0.5rem;
    padding: 35px;
    max-width: 480px;
    width: calc(100% - 40px);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 80px rgba(0, 255, 136, 0.2);
    position: fixed; 
    top: 50vh; 
    left: 50vw;
    transform: translate(-50%, -50%); 
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    color: var(--neon-green);
    font-size: 1.8em;
    margin: 0;
}

.modal-close {
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--neon-green);
}

.modal-text {
    color: var(--text-secondary);
    font-size: 1.1em;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 14px 28px;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 140px;
}

.modal-btn.primary {
    background: linear-gradient(135deg, var(--neon-green) 0%, var(--neon-green-dark) 100%);
    color: #000;
}

.modal-btn.secondary {
    background: var(--bg-secondary);
    color: var(--neon-green);
    border: 1px solid var(--border-color);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.4);
}

@media (max-width: 600px) {
    .modal-content {
        padding: 25px 20px;
        border-radius: 0.5rem;
    }

    .modal-header h2 {
        font-size: 1.5em;
    }

    .modal-text {
        font-size: 1em;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
        padding: 14px 20px;
    }
}


/* ========================================
   Footer Links
   ======================================== */
.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--neon-green);
}

.footer-abuse-link {
  color: var(--danger);
  text-decoration: none;
}

.footer-abuse-link:hover {
  color: var(--neon-green);
}

/* ========================================
   Policy Pages
   ======================================== */
.policy-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.policy-date {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.policy-section {
    margin-bottom: 35px;
}

.policy-section h2 {
    color: var(--neon-green);
    font-size: 1.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.policy-section h3 {
    color: var(--neon-green);
    font-size: 1.2em;
    margin: 20px 0 15px 0;
}

.policy-section h4 {
    color: var(--neon-green);
    font-size: 1.1em;
    margin: 15px 0 10px 0;
}

.policy-section p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.policy-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.policy-section li {
    color: var(--text-secondary);
    margin: 8px 0;
    line-height: 1.5;
}

.third-party-item {
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 20px;
    margin: 15px 0;
    border: 1px solid var(--border-color);
}

.third-party-item h4 {
    margin-top: 0;
}

.policy-section a {
    color: var(--neon-green);
    text-decoration: none;
}

.policy-section a:hover {
    text-decoration: underline;
}

/* ========================================
   Delete Backup Button
   ======================================== */
.delete-backup-btn {
    background: var(--danger);
    color: #000;
    border: none;
    border-radius: 0.5rem;
    padding: 0.24rem 1.24rem;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50%;
}

.delete-backup-btn:hover {
    background: var(--neon-green);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.4);
}
