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

:root {
    --primary-color: #0066FF;
    --primary-hover: #0052CC;
    --primary-light: #E6F0FF;
    --secondary-color: #1A1A2E;
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #888888;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-gray: #F0F2F5;
    --border-color: #E0E4E8;
    --success-color: #28A745;
    --error-color: #DC3545;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

/* App Layout (Dashboard) */
body.app-layout {
    padding: 20px;
}

body.app-layout .container {
    max-width: 900px;
    margin: 0 auto;
}

body.app-layout header {
    background: var(--primary-color);
    color: white;
    margin-bottom: 30px;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* Landing Page Layout */
body.landing-layout {
    background: var(--bg-white);
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-cta {
    display: flex;
    gap: 12px;
}

/* Header Content */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content > div:first-child {
    text-align: left;
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    font-size: 0.95rem;
}

.user-info .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Plan Badge */
.plan-badge {
    background: var(--bg-gray);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-badge.plan-small {
    background: #E6F0FF;
    color: #0066FF;
}

.plan-badge.plan-medium {
    background: #E8F5E9;
    color: #2E7D32;
}

.plan-badge.plan-large {
    background: #FFF3E0;
    color: #E65100;
}

/* Plan Info Banner */
/* Impersonation Banner */
.impersonation-banner {
    background: linear-gradient(135deg, #FFA500 0%, #FF6B00 100%);
    color: white;
    padding: 12px 25px;
    position: sticky;
    top: 70px;
    z-index: 99;
    box-shadow: var(--shadow-md);
}

.impersonation-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.impersonation-icon {
    font-size: 1.2rem;
}

.impersonation-text {
    font-size: 0.95rem;
}

.impersonation-exit {
    background: white;
    color: #FF6B00;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.impersonation-exit:hover {
    background: #f8f8f8;
    transform: translateY(-1px);
}

.plan-info-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052CC 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-md);
}

/* Click Stats Row */
.click-stats-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.click-stat {
    flex: 1;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    text-align: center;
}

.click-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.click-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 500px) {
    .click-stats-row {
        flex-direction: column;
        gap: 8px;
    }
    .click-stat {
        padding: 10px;
    }
}

.plan-info-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.plan-info-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-info-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.plan-info-name {
    font-size: 1.1rem;
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 15px;
}

.plan-info-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    opacity: 0.95;
}

.plan-feature .feature-icon {
    font-size: 1rem;
}

.plan-info-right {
    display: flex;
    align-items: center;
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.card h2 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-secondary {
    background: var(--bg-gray);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

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

.btn-outline:hover {
    background: var(--primary-light);
}

.btn-link {
    background: transparent;
    color: var(--primary-color);
    text-decoration: underline;
    padding: 8px 16px;
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Result Section */
.result {
    margin-top: 30px;
    padding: 20px;
    background: var(--primary-light);
    border-radius: 8px;
    border: 2px solid var(--primary-color);
}

.result.hidden {
    display: none;
}

.success-message h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.short-url-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.short-url-container input {
    flex: 1;
    padding: 12px;
    font-size: 1.1rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: white;
}

.link-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.link-info p {
    margin-bottom: 10px;
    color: var(--text-light);
}

.link-info strong {
    color: var(--text-color);
}

/* Links List */
.links-list {
    margin-top: 20px;
    overflow-x: hidden;
    max-width: 100%;
}

.loading {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
}

/* Compact Link Row */
.link-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 4px;
    background: var(--bg-white);
    max-width: 100%;
    box-sizing: border-box;
}

.link-row:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.link-row-main {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.link-row-url {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-row-url:hover {
    text-decoration: underline;
}

.link-row-title {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-row-stats {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.link-row-stats span {
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: 4px;
}

.link-row-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.btn-icon:hover {
    opacity: 1;
}

/* Legacy - keep for compatibility */
.link-item {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 6px;
    transition: all 0.2s;
    background: var(--bg-white);
}

.link-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.link-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    gap: 10px;
}

.link-item-header .link-item-actions {
    margin-top: 0;
}

.link-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-item-code {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: monospace;
}

.link-item-short-url {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    padding: 4px 8px;
    background: var(--primary-light);
    border-radius: 4px;
    border: 1px solid rgba(0, 102, 255, 0.15);
}

.short-url-link {
    flex: 1;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    word-break: break-all;
}

.short-url-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.btn-copy {
    padding: 8px 16px;
    font-size: 0.85rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-copy:hover {
    background: var(--primary-hover);
}

.btn-copy.copied {
    background: var(--success-color);
}

.link-item-url {
    color: var(--text-muted);
    font-size: 0.8rem;
    word-break: break-all;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.url-label {
    color: var(--text-muted);
    font-weight: 500;
}

.link-item-stats {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0;
    padding: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.link-item-stats .stat-item {
    display: inline !important;
}

.link-item-stats .stat-value {
    font-weight: 600;
    color: var(--primary-color);
}

.link-item-stats .stat-label {
    display: none !important;
}

.link-item-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.link-item-actions {
    margin-top: 8px;
    display: flex;
    gap: 6px;
}

.link-item-actions .btn {
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* Analytics */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.analytics-stat {
    background: var(--primary-color);
    color: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.analytics-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.analytics-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.analytics-chart {
    margin-bottom: 30px;
}

.analytics-chart h3 {
    color: var(--text-color);
    margin-bottom: 15px;
}

.chart-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.chart-label {
    flex: 0 0 100px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.chart-bar {
    flex: 1;
    height: 30px;
    background: var(--primary-color);
    border-radius: 6px;
    position: relative;
    margin-right: 10px;
}

.chart-value {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 600;
}

/* Footer */
footer {
    text-align: center;
    color: var(--text-muted);
    margin-top: 40px;
    padding: 20px;
}

footer p {
    margin: 5px 0;
}

body.app-layout footer {
    color: var(--text-muted);
}

/* Error */
.error {
    background: #FEE2E2;
    border: 2px solid var(--error-color);
    color: #B91C1C;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

/* Hero Section */
.hero {
    padding: 80px 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.hero-stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Features Section */
.features {
    padding: 80px 40px;
    background: var(--bg-white);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Comparison Section */
.comparison {
    padding: 80px 40px;
    background: var(--bg-light);
}

.comparison h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 50px;
}

.comparison-table {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.check {
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.cross {
    color: var(--error-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Apps Section */
.apps {
    padding: 80px 40px;
    background: var(--bg-white);
    text-align: center;
}

.apps h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.apps p {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.apps-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.app-badge {
    background: var(--bg-light);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.2s;
}

.app-badge:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* Testimonials */
.testimonials {
    padding: 80px 40px;
    background: var(--bg-light);
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 50px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.testimonial-metric {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.testimonial-text {
    color: var(--text-light);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-color);
}

/* CTA Section */
.cta {
    padding: 80px 40px;
    background: var(--primary-color);
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta .btn {
    background: white;
    color: var(--primary-color);
}

.cta .btn:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* Pricing Page */
.pricing-header {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.pricing-header h1 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.pricing-header p {
    color: var(--text-light);
    font-size: 1.2rem;
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.pricing-toggle span {
    font-weight: 500;
    color: var(--text-light);
}

.pricing-toggle span.active {
    color: var(--text-color);
}

.toggle-switch {
    width: 60px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 16px;
    position: relative;
    cursor: pointer;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.2s;
}

.toggle-switch.yearly::after {
    transform: translateX(28px);
}

.save-badge {
    background: var(--success-color);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 80px;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 35px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card .annual-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 10px 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
}

.pricing-features li.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
}

.pricing-features li.disabled::before {
    content: '✗';
    color: var(--text-muted);
}

.pricing-card .btn {
    width: 100%;
}

.pricing-card.popular .btn {
    background: var(--primary-color);
    color: white;
}

.pricing-note {
    text-align: center;
    padding: 30px 40px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Landing Footer */
.landing-footer {
    background: var(--secondary-color);
    color: white;
    padding: 60px 40px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: white;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Dashboard Container - for authenticated pages */
.dashboard-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 40px;
    background: var(--bg-light);
    min-height: calc(100vh - 300px);
}

.dashboard-container main {
    margin: 0;
}

/* Page Header for authenticated pages */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052CC 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.9;
}

/* Admin Styles */
.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

.users-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-color);
}

.users-table tr:hover {
    background: var(--bg-light);
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-admin {
    background: var(--primary-color);
    color: white;
}

.badge-user {
    background: var(--bg-gray);
    color: var(--text-color);
}

.badge-active {
    background: var(--success-color);
    color: white;
}

.badge-inactive {
    background: var(--error-color);
    color: white;
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background: #C82333;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    padding: 35px;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 15px 20px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
    }

    .hero {
        padding: 50px 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .card {
        padding: 20px;
    }

    .short-url-container {
        flex-direction: column;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        padding: 0 20px 60px;
    }

    .features, .comparison, .apps, .testimonials {
        padding: 50px 20px;
    }
}

/* ==================== NEW FEATURES STYLES ==================== */

/* Form Row - Side by side inputs */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Section Header with actions */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header h2 {
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Advanced Options Accordion */
.advanced-options {
    margin: 20px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.advanced-options summary {
    padding: 15px 20px;
    background: var(--bg-light);
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    list-style: none;
}

.advanced-options summary::-webkit-details-marker {
    display: none;
}

.advanced-options summary::before {
    content: '+ ';
}

.advanced-options[open] summary::before {
    content: '- ';
}

.advanced-options[open] summary {
    border-bottom: 1px solid var(--border-color);
}

.form-section {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Campaigns List */
.campaigns-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.campaign-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    gap: 15px;
    flex-wrap: wrap;
}

.campaign-info {
    flex: 1;
    min-width: 200px;
}

.campaign-name {
    font-weight: 600;
    color: var(--secondary-color);
    display: block;
}

.campaign-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.campaign-stats {
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-separator {
    color: var(--text-muted);
    opacity: 0.5;
}

.campaign-actions {
    display: flex;
    gap: 8px;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 4px;
    margin-left: 8px;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--secondary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: 0;
}

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

.modal-content form {
    padding: 24px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* QR Code Modal */
.qr-content {
    padding: 30px;
    text-align: center;
}

.qr-content img {
    max-width: 256px;
    width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
}

.qr-content p {
    font-family: monospace;
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Button Variants */
.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-danger {
    background: var(--error-color);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #c82333;
}

/* Textarea */
textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Responsive adjustments for new features */
@media (max-width: 768px) {
    .campaign-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .campaign-actions {
        width: 100%;
        justify-content: flex-end;
    }

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

    .form-actions .btn {
        width: 100%;
    }
}

/* ==================== DOMAINS SECTION ==================== */

.domains-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.domain-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.domain-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.domain-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.domain-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.domain-status.verified {
    background: #D4EDDA;
    color: #155724;
}

.domain-status.pending {
    background: #FFF3CD;
    color: #856404;
}

.domain-actions {
    display: flex;
    gap: 10px;
}

/* Verification Modal Styles */
.modal-wide {
    max-width: 700px;
}

.verify-steps {
    padding: 10px;
}

.verify-steps h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.verify-method {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.verify-method h5 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.verify-method p {
    margin-bottom: 8px;
    color: var(--text-light);
}

.code-block {
    background: var(--secondary-color);
    padding: 12px;
    border-radius: 6px;
    margin-top: 10px;
}

.code-block code {
    color: #00FF88;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    display: block;
    word-break: break-all;
}

.code-block p {
    color: #AAA;
    margin-top: 8px;
    margin-bottom: 0;
}

.code-block p code {
    color: #FFD700;
    display: inline;
}

/* ==================== TEAM SECTION ==================== */

.team-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.team-list h4 {
    color: var(--text-light);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 15px;
    margin-bottom: 10px;
}

.team-list h4:first-child {
    margin-top: 0;
}

.team-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.team-item.pending {
    background: #FFFBF0;
    border-color: #FFE0B2;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.team-name {
    font-weight: 600;
    color: var(--text-color);
}

.team-email {
    color: var(--text-light);
}

.team-role {
    padding: 3px 10px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.team-status.pending {
    padding: 3px 10px;
    background: #FFF3CD;
    color: #856404;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

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

.role-select {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-white);
    font-size: 0.875rem;
    cursor: pointer;
}

/* Invite Link Modal */
.invite-link-content {
    padding: 10px;
    text-align: center;
}

.invite-link-content p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.invite-link-content .note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 15px;
}

/* Feature Notes */
.feature-note {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: right;
}

.empty-message {
    color: var(--text-light);
    padding: 20px;
    text-align: center;
}

.upgrade-message {
    color: var(--text-light);
    padding: 20px;
    text-align: center;
    background: var(--bg-light);
    border-radius: 8px;
}

.upgrade-message a {
    color: var(--primary-color);
    font-weight: 500;
}

/* Responsive Domains/Team */
@media (max-width: 768px) {
    .domain-item, .team-item {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .domain-actions, .team-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .domain-info, .team-info {
        flex-wrap: wrap;
    }
}

/* ==================== STATIC PAGES STYLES ==================== */

/* Page Container - for static pages */
.page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 40px;
}

.page-container .page-header {
    background: none;
    padding: 0;
    margin-bottom: 40px;
    text-align: center;
}

.page-container .page-header h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-container .page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Legal Pages (Privacy, Terms, Cookies) */
.legal-page {
    max-width: 800px;
}

.legal-content section {
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.legal-content h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 20px 0 10px;
}

.legal-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.7;
}

.legal-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-content li {
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Cookie table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

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

.cookie-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-color);
}

.cookie-table td {
    color: var(--text-light);
}

/* API Documentation */
.docs-content {
    background: var(--bg-white);
}

.docs-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.docs-section:last-child {
    border-bottom: none;
}

.docs-section h2 {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.docs-section p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.7;
}

.docs-section ul {
    margin: 15px 0;
    padding-left: 25px;
}

.docs-section li {
    color: var(--text-light);
    margin-bottom: 8px;
}

.docs-section li code {
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
}

.docs-section pre {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    color: #E0E0E0;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 15px 0;
}

.endpoint {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.endpoint h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.endpoint h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 20px 0 10px;
}

.endpoint p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.method {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.method.get {
    background: #61AFFE;
    color: white;
}

.method.post {
    background: #49CC90;
    color: white;
}

.method.put {
    background: #FCA130;
    color: white;
}

.method.delete {
    background: #F93E3E;
    color: white;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

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

.docs-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-color);
}

.docs-table td {
    color: var(--text-light);
}

/* About Page */
.about-section {
    margin-bottom: 50px;
}

.about-section h2 {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.about-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.about-feature {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
}

.about-feature h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.about-feature p {
    color: var(--text-light);
    margin: 0;
}

.stats-section {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-muted);
    margin-top: 5px;
}

.cta-section {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0052CC 100%);
    border-radius: 12px;
    color: white;
}

.cta-section h2 {
    margin-bottom: 15px;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 25px;
}

.cta-section .btn {
    background: white;
    color: var(--primary-color);
}

/* Blog Page */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

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

.blog-card h2 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.blog-link:hover {
    text-decoration: underline;
}

.blog-pagination {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item h3 {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.contact-item p {
    color: var(--text-color);
    margin: 0;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-note {
    font-size: 0.875rem;
    color: var(--text-muted) !important;
    margin-top: 5px !important;
}

.contact-form-container {
    background: var(--bg-light);
    padding: 35px;
    border-radius: 12px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* FAQ Section */
.faq-section {
    margin-top: 60px;
}

.faq-section h2 {
    text-align: center;
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

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

.faq-item {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
}

.faq-item h3 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Integrations Page */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.integration-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.integration-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.integration-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.integration-card h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.integration-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.integration-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.integration-status.available {
    background: #D4EDDA;
    color: #155724;
}

.integration-status.coming {
    background: #FFF3CD;
    color: #856404;
}

/* Responsive for static pages */
@media (max-width: 768px) {
    .page-container {
        padding: 40px 20px;
    }

    .page-container .page-header h1 {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-features,
    .stats-grid,
    .faq-grid,
    .integrations-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== ADMIN NAV MOBILE STYLES ==================== */
@media (max-width: 768px) {
    .admin-nav {
        padding: 0 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .admin-nav::-webkit-scrollbar {
        display: none;
    }

    .admin-nav a {
        padding: 12px 15px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .admin-nav {
        padding: 0 10px;
    }

    .admin-nav a {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* ==================== MOBILE RESPONSIVE STYLES ==================== */

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 110;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Container */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85%;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    z-index: 101;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding-top: 70px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-links {
    padding: 20px;
}

.mobile-menu-links a {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.mobile-menu-cta {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu-cta .btn {
    width: 100%;
    text-align: center;
}

.mobile-user-info {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.mobile-user-info .plan-badge {
    margin-bottom: 8px;
    display: inline-block;
}

.mobile-user-info .user-name {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

/* ==================== TABLET BREAKPOINT (768px) ==================== */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    /* Hide desktop nav elements */
    .nav-links,
    .nav-cta {
        display: none !important;
    }

    .nav {
        padding: 12px 16px;
        justify-content: space-between;
    }

    /* Dashboard container - override inline styles */
    .dashboard-container {
        padding: 15px !important;
        overflow-x: hidden;
        max-width: 100%;
    }

    /* Cards overflow */
    .card {
        overflow: hidden;
        max-width: 100%;
    }

    /* Links list overflow */
    .links-list {
        overflow-x: hidden;
    }

    /* Page header */
    .page-header {
        padding: 25px 16px !important;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    /* Admin nav tabs */
    .admin-nav {
        padding: 0 10px !important;
        gap: 2px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-nav a {
        padding: 12px 14px;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Dashboard stat grids */
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    .stat-card .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* Charts grid */
    .charts-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .chart-card {
        padding: 16px;
    }

    .chart-container {
        height: 250px;
    }

    /* Tables grid - fix min-width issue */
    .tables-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .table-card {
        padding: 16px;
    }

    .mini-table th,
    .mini-table td {
        padding: 10px 6px;
        font-size: 0.85rem;
    }

    /* Quick stats */
    .quick-stats {
        flex-wrap: wrap;
        gap: 15px;
    }

    .quick-stat {
        flex: 1;
        min-width: 70px;
    }

    .quick-stat .value {
        font-size: 1.2rem;
    }

    /* Plan Info Banner */
    .plan-info-banner {
        padding: 12px 15px;
        margin-bottom: 12px;
        border-radius: 8px;
    }

    .plan-info-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .plan-info-left {
        width: 100%;
    }

    .plan-info-features {
        width: 100%;
        gap: 10px;
    }

    .plan-feature {
        font-size: 0.8rem;
    }

    .plan-info-right {
        width: 100%;
    }

    .plan-info-right .btn {
        width: 100%;
    }

    /* Cards */
    .card {
        padding: 16px;
        margin-bottom: 15px;
        border-radius: 10px;
    }

    .card h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    /* Section Headers */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        max-width: 100%;
        overflow: hidden;
    }

    .section-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        max-width: 100%;
    }

    .section-actions .btn {
        flex: 1 1 auto;
        min-width: calc(33% - 6px);
        text-align: center;
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom */
    }

    /* Advanced Options */
    .advanced-options summary {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .form-section {
        padding: 15px;
    }

    .form-section h4 {
        font-size: 13px;
    }

    /* Buttons */
    .btn-primary {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .btn-sm {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Link Items - Mobile */
    .link-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 14px !important;
        gap: 12px !important;
        border-radius: 10px;
    }

    .link-row-main {
        width: 100%;
        min-width: 0;
    }

    .link-row-url {
        font-size: 0.9rem;
        word-break: break-all !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .link-row-title {
        margin-top: 4px;
        white-space: normal !important;
        overflow: visible !important;
    }

    .link-row-stats {
        width: 100%;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        justify-content: flex-start;
        white-space: normal !important;
    }

    .link-row-stats span {
        font-size: 0.75rem;
        padding: 4px 8px;
        border-radius: 4px;
        white-space: nowrap;
    }

    .link-row-actions {
        width: 100%;
        display: flex !important;
        justify-content: space-between !important;
        gap: 8px !important;
        padding-top: 10px;
        border-top: 1px solid var(--border-color);
        margin-top: 4px;
    }

    .link-row-actions .btn-icon {
        flex: 1;
        min-width: 44px;
        min-height: 44px;
        font-size: 1.2rem;
        background: var(--bg-light);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1;
    }

    .link-item {
        padding: 12px;
    }

    .link-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .link-item-short-url {
        flex-direction: column;
        align-items: stretch;
    }

    .short-url-link {
        text-align: center;
        padding: 8px;
    }

    .btn-copy {
        width: 100%;
    }

    .link-item-stats {
        flex-wrap: wrap;
    }

    .link-item-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .link-item-actions .btn {
        flex: 1;
        min-width: calc(50% - 3px);
    }

    /* Campaign Items */
    .campaign-item {
        padding: 12px 15px;
    }

    .campaign-info {
        min-width: 100%;
    }

    .campaign-stats {
        width: 100%;
        padding-top: 8px;
        border-top: 1px solid var(--border-color);
        margin-top: 8px;
    }

    .campaign-actions {
        width: 100%;
        justify-content: space-between;
    }

    .campaign-actions .btn {
        flex: 1;
    }

    /* Click Stats */
    .click-stats-row {
        gap: 10px;
        margin-bottom: 15px;
    }

    .click-stat {
        padding: 10px 8px;
    }

    .click-stat-value {
        font-size: 1.3rem;
    }

    .click-stat-label {
        font-size: 0.7rem;
    }

    /* Modals */
    .modal {
        padding: 10px;
        align-items: flex-end;
    }

    .modal-content {
        max-width: 100%;
        max-height: 85vh;
        border-radius: 16px 16px 0 0;
        margin-bottom: 0;
    }

    .modal-content.modal-wide {
        max-width: 100%;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .modal-header h3 {
        font-size: 1.2rem;
    }

    .modal-content form {
        padding: 16px 20px;
    }

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

    .form-actions .btn {
        width: 100%;
    }

    /* QR Modal */
    .qr-content {
        padding: 20px;
    }

    .qr-content img {
        max-width: 200px;
    }

    /* Footer */
    .landing-footer {
        padding: 40px 20px 20px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-col h4 {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .footer-col a {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    /* Tables - Horizontal scroll */
    .users-table,
    .comparison-table table,
    .docs-table,
    .cookie-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .users-table th,
    .users-table td,
    .comparison-table th,
    .comparison-table td {
        padding: 10px 12px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    /* Landing Hero */
    .hero {
        padding: 40px 16px;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero h1 br {
        display: none;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-cta {
        gap: 12px;
    }

    .hero-cta .btn {
        padding: 14px 24px;
    }

    .hero-stats {
        gap: 20px;
        margin-top: 40px;
    }

    .hero-stat-value {
        font-size: 2rem;
    }

    .hero-stat-label {
        font-size: 0.85rem;
    }

    /* Features */
    .features {
        padding: 50px 16px;
    }

    .features h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 24px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    /* Comparison */
    .comparison {
        padding: 50px 16px;
    }

    .comparison h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .comparison-table {
        border-radius: 8px;
    }

    /* Apps Section */
    .apps {
        padding: 50px 16px;
    }

    .apps h2 {
        font-size: 1.8rem;
    }

    .apps p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .apps-grid {
        gap: 10px;
    }

    .app-badge {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    /* Testimonials */
    .testimonials {
        padding: 50px 16px;
    }

    .testimonials h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 24px;
    }

    .testimonial-metric {
        font-size: 1.8rem;
    }

    /* CTA */
    .cta {
        padding: 50px 16px;
    }

    .cta h2 {
        font-size: 1.8rem;
    }

    .cta p {
        font-size: 1rem;
    }

    /* Pricing */
    .pricing-header {
        padding: 40px 16px;
    }

    .pricing-header h1 {
        font-size: 2rem;
    }

    .pricing-header p {
        font-size: 1rem;
    }

    .pricing-toggle {
        flex-wrap: wrap;
        gap: 10px;
        margin: 20px 0;
    }

    .pricing-toggle span {
        font-size: 0.9rem;
    }

    .save-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .pricing-grid {
        padding: 0 16px 50px;
        gap: 20px;
    }

    .pricing-card {
        padding: 25px;
    }

    .pricing-card .price {
        font-size: 2.5rem;
    }

    .pricing-features li {
        font-size: 0.9rem;
        padding: 8px 0;
    }

    .annual-price {
        font-size: 0.8rem;
    }

    /* Domain/Team items */
    .verify-steps {
        padding: 5px;
    }

    .verify-method {
        padding: 12px;
    }

    .code-block {
        padding: 10px;
    }

    .code-block code {
        font-size: 0.75rem;
    }

    /* Analytics */
    .analytics-stat {
        padding: 18px;
    }

    .analytics-stat-value {
        font-size: 2rem;
    }

    .chart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .chart-label {
        flex: none;
        width: 100%;
    }

    .chart-bar {
        width: 100%;
    }

    /* Impersonation Banner */
    .impersonation-banner {
        padding: 10px 15px;
        top: 60px;
    }

    .impersonation-content {
        font-size: 0.85rem;
    }

    .impersonation-exit {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
}

/* ==================== SMALL MOBILE BREAKPOINT (480px) ==================== */
@media (max-width: 480px) {
    /* Navigation */
    .nav {
        padding: 10px 12px;
    }

    .nav-logo {
        font-size: 1.3rem;
    }

    /* Dashboard */
    .dashboard-container {
        padding: 10px !important;
    }

    /* Page header */
    .page-header {
        padding: 20px 12px !important;
    }

    .page-header h1 {
        font-size: 1.3rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    /* Admin nav - single row scroll */
    .admin-nav {
        padding: 0 8px !important;
    }

    .admin-nav a {
        padding: 10px 10px;
        font-size: 0.8rem;
    }

    /* Dashboard stat grids - single column */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-card .stat-value {
        font-size: 1.3rem;
    }

    .stat-card .stat-label {
        font-size: 0.8rem;
    }

    /* Plan Info Banner */
    .plan-info-banner {
        padding: 10px 12px;
    }

    .plan-info-name {
        font-size: 1rem;
        padding: 3px 10px;
    }

    .plan-info-features {
        flex-direction: column;
        gap: 6px;
    }

    .plan-feature {
        font-size: 0.75rem;
    }

    /* Cards */
    .card {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 8px;
    }

    .card h2 {
        font-size: 1.1rem;
    }

    /* Click Stats - horizontal scroll */
    .click-stats-row {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
        gap: 8px;
    }

    .click-stat {
        flex: 0 0 auto;
        min-width: 100px;
        padding: 10px;
    }

    .click-stat-value {
        font-size: 1.2rem;
    }

    /* Section Actions */
    .section-actions {
        gap: 6px;
    }

    .section-actions .btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: auto;
    }

    /* Login page styles */
    .login-nav {
        padding: 15px 12px !important;
    }

    .login-container {
        padding: 20px 12px !important;
    }

    .login-card {
        padding: 24px 16px !important;
        border-radius: 12px !important;
    }

    .login-header h1 {
        font-size: 1.4rem !important;
    }

    /* Activity items */
    .activity-item {
        padding: 10px 0;
        gap: 10px;
    }

    .activity-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .activity-content .action {
        font-size: 0.9rem;
    }

    .activity-content .details {
        font-size: 0.8rem;
    }

    /* Truncate column */
    .truncate {
        max-width: 120px;
    }

    /* Link Items */
    .link-row {
        padding: 12px;
        gap: 10px;
    }

    .link-row-url {
        font-size: 0.85rem;
    }

    .link-row-title {
        font-size: 0.7rem;
    }

    .link-row-stats {
        gap: 4px;
    }

    .link-row-stats span {
        font-size: 0.65rem;
        padding: 3px 6px;
    }

    .link-row-actions {
        gap: 6px;
        padding-top: 6px;
    }

    .link-row-actions .btn-icon {
        min-width: 40px;
        min-height: 40px;
        font-size: 1rem;
    }

    .link-item {
        padding: 10px;
    }

    .link-item-title {
        font-size: 0.9rem;
    }

    .link-item-url {
        font-size: 0.75rem;
    }

    .link-item-actions .btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    /* Campaign Items */
    .campaign-item {
        padding: 10px 12px;
    }

    .campaign-name {
        font-size: 0.95rem;
    }

    .campaign-desc {
        font-size: 0.8rem;
    }

    .campaign-stats {
        font-size: 0.8rem;
    }

    /* Modals */
    .modal-content {
        border-radius: 12px 12px 0 0;
    }

    .modal-header {
        padding: 14px 16px;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .modal-content form {
        padding: 14px 16px;
    }

    /* Hero */
    .hero {
        padding: 30px 12px;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }

    .hero-stat-value {
        font-size: 1.8rem;
    }

    /* Features */
    .features {
        padding: 40px 12px;
    }

    .features h2 {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 20px;
    }

    /* Sections */
    .comparison,
    .apps,
    .testimonials,
    .cta {
        padding: 40px 12px;
    }

    .comparison h2,
    .apps h2,
    .testimonials h2,
    .cta h2 {
        font-size: 1.5rem;
    }

    /* Pricing */
    .pricing-header {
        padding: 30px 12px;
    }

    .pricing-header h1 {
        font-size: 1.7rem;
    }

    .pricing-grid {
        padding: 0 12px 40px;
    }

    .pricing-card {
        padding: 20px;
    }

    .pricing-card .price {
        font-size: 2rem;
    }

    /* Footer */
    .landing-footer {
        padding: 30px 12px 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-col a {
        font-size: 0.85rem;
    }

    /* Page Container */
    .page-container {
        padding: 30px 12px;
    }

    .page-container .page-header h1 {
        font-size: 1.6rem;
    }

    /* Domains/Team */
    .domain-item,
    .team-item {
        padding: 12px;
    }

    .domain-name,
    .team-name {
        font-size: 0.95rem;
    }

    .domain-status,
    .team-role,
    .team-status.pending {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .domain-actions .btn,
    .team-actions .btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    /* Result Section */
    .result {
        padding: 15px;
        margin-top: 20px;
    }

    .short-url-container {
        gap: 8px;
    }

    .short-url-container input {
        font-size: 0.95rem;
        padding: 10px;
    }

    .short-url-container .btn {
        padding: 10px 16px;
    }
}

/* ==================== EXTRA SMALL MOBILE (360px) ==================== */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .card {
        padding: 10px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .section-actions .btn {
        font-size: 0.75rem;
    }

    /* Admin nav - even more compact */
    .admin-nav a {
        padding: 8px 8px;
        font-size: 0.75rem;
    }

    /* Page header */
    .page-header {
        padding: 16px 10px !important;
    }

    .page-header h1 {
        font-size: 1.2rem;
    }

    /* Stat cards */
    .stat-card {
        padding: 12px;
    }

    .stat-card .stat-value {
        font-size: 1.2rem;
    }

    .stat-card .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    /* Tables */
    .mini-table th,
    .mini-table td {
        padding: 8px 4px;
        font-size: 0.75rem;
    }

    .truncate {
        max-width: 90px;
    }

    /* Footer on very small screens */
    .footer-col h4 {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .footer-col a {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .section-actions .btn {
        font-size: 0.75rem;
        padding: 5px 8px;
    }

    .mobile-menu {
        width: 100%;
        max-width: 100%;
    }
}

/* ==================== TOUCH DEVICE OPTIMIZATIONS ==================== */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn {
        min-height: 44px;
    }

    .btn-sm {
        min-height: 36px;
    }

    .btn-icon {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }

    /* Remove hover effects that don't work well on touch */
    .feature-card:hover,
    .pricing-card:hover,
    .blog-card:hover,
    .integration-card:hover {
        transform: none;
    }

    .link-row:hover {
        background: var(--bg-white);
        border-color: var(--border-color);
    }

    /* Better tap feedback */
    .btn:active {
        transform: scale(0.98);
    }

    .link-row:active,
    .campaign-item:active {
        background: var(--primary-light);
    }
}

/* ==================== LANDSCAPE MOBILE ==================== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 30px 20px;
    }

    .hero-stats {
        flex-direction: row;
        gap: 30px;
    }

    .modal {
        align-items: center;
    }

    .modal-content {
        max-height: 90vh;
        border-radius: 12px;
    }

    .click-stats-row {
        flex-direction: row;
    }

    .click-stat {
        flex: 1;
        min-width: 0;
    }
}

/* ==================== SAFE AREA INSETS (Notch devices) ==================== */
@supports (padding: max(0px)) {
    .nav {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    .dashboard-container {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }

    .mobile-menu {
        padding-right: max(20px, env(safe-area-inset-right));
    }

    .landing-footer {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .modal-content {
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .nav,
    .mobile-menu-toggle,
    .mobile-menu,
    .mobile-nav-overlay,
    .landing-footer,
    .section-actions,
    .link-item-actions,
    .campaign-actions,
    .form-actions {
        display: none !important;
    }

    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    body {
        background: white;
    }
}
