/* ==========================================================================
   WhatsApp Link Generator - Core Design System & Stylesheet
   ========================================================================== */

/* --- CSS VARIABLES & TOKENS --- */
:root {
    --bg-main: #0a0a0c;
    --bg-surface: #121216;
    --bg-surface-hover: #1b1b22;
    --border-color: #22222a;
    --border-glow: rgba(37, 211, 102, 0.15);
    
    --primary: #25D366;
    --primary-hover: #1ebd58;
    --primary-glow: rgba(37, 211, 102, 0.4);
    
    --secondary: #0084ff;
    --secondary-hover: #0073de;
    
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --text-inverse: #0a0a0c;
    
    --danger: #f43f5e;
    --success: #10b981;
    --warning: #f59e0b;
    
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px;
    --sidebar-width: 280px;
}

/* --- RESET & GLOBAL STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* --- LAYOUT WRAPPERS --- */
.page-wrapper {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* --- BUTTON SYSTEM --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-inverse);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    background-color: var(--bg-surface-hover);
    color: #ffffff;
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--bg-surface-hover);
    border-color: var(--text-muted);
}

.btn-login {
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
}

.btn-login:hover {
    color: var(--primary);
}

/* --- STICKY responsive HEADER --- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background: rgba(10, 10, 12, 0.95);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: #ffffff;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #1ebd58);
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-item:hover, .nav-item.active {
    color: #ffffff;
}

.header-auth-desktop {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-auth-mobile {
    display: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    transition: var(--transition-smooth);
}

/* --- HERO SECTION & 3D rotating LOGO --- */
.hero-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.08) 0%, transparent 70%);
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
}

/* Hardware-Accelerated 3D rotating WhatsApp logo */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-3d-container {
    width: 320px;
    height: 320px;
    perspective: 1200px;
}

.whatsapp-3d-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(20deg) rotateY(145deg);
    animation: rotate3D 16s linear infinite, float3D 4s ease-in-out infinite alternate;
}

.whatsapp-3d-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: visible;
}

.whatsapp-3d-front {
    background: radial-gradient(circle at 35% 35%, #25D366, #128C7E);
    border: 4px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 40px rgba(37, 211, 102, 0.4), inset 0 0 25px rgba(255, 255, 255, 0.2);
    transform: translateZ(20px);
}

.whatsapp-3d-back {
    background: #0f6c31;
    transform: rotateY(180deg) translateZ(20px);
    border: 4px solid rgba(255, 255, 255, 0.05);
}

/* Cylinder side-layers to give true 3D thickness */
.whatsapp-3d-side {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #116834;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.side-1 { transform: translateZ(10px); }
.side-2 { transform: translateZ(0px); }
.side-3 { transform: translateZ(-10px); }

.whatsapp-3d-icon {
    font-size: 9rem;
    color: #ffffff;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.3));
    transform: translateZ(30px);
}

/* Animations */
@keyframes rotate3D {
    0% { transform: rotateX(20deg) rotateY(0deg); }
    100% { transform: rotateX(20deg) rotateY(360deg); }
}

@keyframes float3D {
    0% { transform: translateY(0) rotateX(20deg) rotateY(145deg); }
    100% { transform: translateY(-20px) rotateX(20deg) rotateY(145deg); }
}

/* --- STATS SECTION --- */
.stats-section {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-card h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-muted);
}

/* --- FEATURES SECTION --- */
.features-section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(37, 211, 102, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(37, 211, 102, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* --- PRICING SECTION --- */
.pricing-section {
    padding: 6rem 0;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: stretch;
}

.pricing-card {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
}

.pricing-card.premium {
    border-color: var(--primary);
    transform: scale(1.03);
    box-shadow: 0 20px 40px -15px rgba(37, 211, 102, 0.15);
}

.pricing-card.premium .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: var(--text-inverse);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-card:hover {
    border-color: var(--primary);
}

.pricing-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li i {
    color: var(--primary);
}

/* --- FAQ / CONTENT ACCORDION --- */
.faq-section {
    padding: 6rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.15rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    margin-top: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    margin-top: 1rem;
}

.faq-icon {
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

/* --- BLOG SYSTEM STYLE --- */
.blog-section {
    padding: 6rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, #18181b, #0f0f11);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    border-bottom: 1px solid var(--border-color);
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.blog-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.blog-card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-single {
    max-width: 800px;
    margin: 6rem auto;
    padding: 0 1.5rem;
}

.blog-single-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.blog-single-content {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.blog-single-content p {
    margin-bottom: 1.5rem;
}

/* --- CONTACT & AUTH FORMS --- */
.auth-card-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    flex-grow: 1;
}

.auth-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    max-width: 480px;
    width: 100%;
}

.auth-card h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #ffffff;
}

.form-control {
    width: 100%;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: #ffffff;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.15);
}

.form-alert {
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.form-alert-danger {
    background-color: rgba(244, 63, 94, 0.1);
    color: var(--danger);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.form-alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* --- FOOTER REQUIREMENTS --- */
.main-footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 0 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 4rem;
    padding: 0 1.5rem 4rem 1.5rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

/* Brand Hovers */
.social-icon.facebook:hover { background-color: #1877F2; color: #ffffff; border-color: #1877F2; }
.social-icon.instagram:hover { background-color: #E1306C; color: #ffffff; border-color: #E1306C; }
.social-icon.twitter:hover { background-color: #000000; color: #ffffff; border-color: #000000; }
.social-icon.linkedin:hover { background-color: #0077B5; color: #ffffff; border-color: #0077B5; }

.footer-title {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.footer-contact li i {
    color: var(--primary);
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    background-color: var(--bg-main);
}

.footer-bottom-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.premium-badge {
    background-color: rgba(37, 211, 102, 0.05);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--border-glow);
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- SAAS DASHBOARD & SIDEBAR LAYOUT --- */
.dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

.dashboard-sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: var(--bg-surface-hover);
    color: #ffffff;
}

.sidebar-link.active i {
    color: var(--primary);
}

.dashboard-main {
    flex-grow: 1;
    padding: 3rem 2.5rem;
    background-color: var(--bg-main);
    overflow-y: auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    font-size: 2.2rem;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 30px;
}

.user-badge-role {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--primary);
    color: var(--text-inverse);
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
}

/* Metrics Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.metric-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.metric-data h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.metric-number {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-color: rgba(37, 211, 102, 0.05);
    border: 1px solid var(--border-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Dashboard Analytics Chart block */
.analytics-block {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-panel {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.panel-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Custom Generator Form inside Dashboard */
.generator-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
}

/* Custom slug live checker box */
.slug-feedback {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.slug-feedback.success { color: var(--success); }
.slug-feedback.error { color: var(--danger); }

/* Link Manager Table & Listing */
.links-panel {
    margin-bottom: 3rem;
}

.links-table-wrapper {
    overflow-x: auto;
}

.links-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    text-align: left;
}

.links-table th {
    background-color: var(--bg-surface-hover);
    color: #ffffff;
    font-weight: 600;
    padding: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.links-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.link-slug-badge {
    background-color: rgba(37, 211, 102, 0.05);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    border: 1px solid var(--border-glow);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.active { background-color: rgba(16, 185, 129, 0.1); color: var(--success); }
.status-badge.paused { background-color: rgba(245, 158, 11, 0.1); color: var(--warning); }

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-icon:hover {
    color: #ffffff;
    background-color: var(--bg-surface-hover);
}

.btn-icon.btn-delete:hover {
    background-color: rgba(244, 63, 94, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

/* Modal Popup Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
}

.qr-preview-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.qr-image-wrapper {
    background: white;
    padding: 1rem;
    border-radius: 12px;
}

/* --- SEO LANDING PAGE --- */
.landing-page-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background: radial-gradient(circle at 50% 50%, #128C7E20, #0a0a0c);
}

.landing-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4rem 3rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8);
    border-top: 4px solid var(--primary);
}

.landing-logo {
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 2rem auto;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.landing-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.landing-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.landing-qr {
    margin: 2rem auto;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content p {
        margin: 0 auto 2.5rem auto;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .features-grid, .pricing-grid, .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .dashboard-wrapper {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analytics-block {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-main);
        flex-direction: column;
        padding: 3rem 1.5rem;
        gap: 1.5rem;
        border-top: 1px solid var(--border-color);
        transition: var(--transition-smooth);
        overflow-y: auto;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .header-auth-desktop {
        display: none;
    }
    
    .header-auth-mobile {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}
