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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f4f9;
    color: #333;
}

/* Header & Nav */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
    font-size: 0.95em;
}

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

.nav-links a.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

.lang-switch {
    display: flex;
    gap: 10px;
    margin-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 15px;
}

.lang-switch a {
    text-decoration: none;
    font-size: 1.2em;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lang-switch a:hover,
.lang-switch a.active {
    opacity: 1;
    transform: scale(1.1);
}

.mobile-only {
    display: none;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #764ba2;
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

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

    .hamburger {
        display: block;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .lang-switch {
        margin: 10px auto;
        border: none;
        padding: 0;
    }

    .mobile-only {
        display: block;
    }

    .dashboard-tabs {
        display: none !important;
    }
}

/* Common Layout */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1em;
}

.btn:hover {
    background: #5568d3;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
}

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

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Cards & Stats */
.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Tabs */
.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1em;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    border-bottom: 3px solid #667eea;
    font-weight: bold;
}

padding: 8px 12px;
border-radius: 6px;
transition: background 0.2s;
font-size: 0.95em;
}

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

.nav-links a.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

.lang-switch {
    display: flex;
    gap: 10px;
    margin-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 15px;
}

.lang-switch a {
    text-decoration: none;
    font-size: 1.2em;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lang-switch a:hover,
.lang-switch a.active {
    opacity: 1;
    transform: scale(1.1);
}

.mobile-only {
    display: none;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #764ba2;
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

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

    .hamburger {
        display: block;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .lang-switch {
        margin: 10px auto;
        border: none;
        padding: 0;
    }

    .mobile-only {
        display: block;
    }

    .dashboard-tabs {
        display: none !important;
    }
}

/* Common Layout */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1em;
}

.btn:hover {
    background: #5568d3;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
}

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

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Cards & Stats */
.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Tabs */
.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1em;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    border-bottom: 3px solid #667eea;
    font-weight: bold;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Stat Cards Variants */
.stat-card.border-blue {
    border-left: 4px solid #667eea;
}

.stat-card.border-green {
    border-left: 4px solid #28a745;
}

.stat-card.border-yellow {
    border-left: 4px solid #ffc107;
}

.stat-value {
    font-size: 2em;
    color: #333;
    font-weight: bold;
}

.stat-subtext {
    font-size: 0.8em;
    color: #666;
}

.stat-alert {
    font-size: 0.85em;
    color: #d9534f;
    font-weight: bold;
    margin-top: 5px;
}

/* Plan Card */
.plan-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.plan-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-bottom-left-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.plan-title {
    color: #666;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-name {
    font-size: 1.8em;
    color: #333;
    font-weight: bold;
    margin: 10px 0;
}

.plan-renewal {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Progress Bar */
.progress-container {
    background: #eee;
    height: 8px;
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-fill {
    background: #667eea;
    height: 100%;
}

/* Quick Actions / API */
.api-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
}

.api-code {
    font-family: monospace;
    font-size: 1.1em;
    color: #333;
    flex-grow: 1;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
}

.data-table th {
    background: #f8f9fa;
    text-align: left;
    padding: 15px;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

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

/* Forms */
.form-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
}

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

.form-label {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

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

.form-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Sender List */
.sender-item {
    background: white;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-green {
    color: green;
}

.text-orange {
    color: orange;
}

.text-red {
    color: red;
}

.btn-text {
    background: none;
    border: none;
    cursor: pointer;
}

/* Utilities */
.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.text-muted {
    color: #666;
}

.text-small {
    font-size: 0.8em;
}

.text-right {
    text-align: right;
    font-weight: bold;
}

.plan-title {
    color: #666;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-name {
    font-size: 1.8em;
    color: #333;
    font-weight: bold;
    margin: 10px 0;
}

.plan-renewal {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Progress Bar */
.progress-container {
    background: #eee;
    height: 8px;
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-fill {
    background: #667eea;
    height: 100%;
}

/* Quick Actions / API */
.api-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
}

.api-code {
    font-family: monospace;
    font-size: 1.1em;
    color: #333;
    flex-grow: 1;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
}

.data-table th {
    background: #f8f9fa;
    text-align: left;
    padding: 15px;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

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

/* Forms */
.form-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
}

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

.form-label {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

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

.form-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Sender List */
.sender-item {
    background: white;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-green {
    color: green;
}

.text-orange {
    color: orange;
}

.text-red {
    color: red;
}

.btn-text {
    background: none;
    border: none;
    cursor: pointer;
}

/* Utilities */
.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.text-muted {
    color: #666;
}

.text-small {
    font-size: 0.8em;
}

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

.section-title {
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #555;
}

/* Toggle Switch */
.toggle-container {
    text-align: center;
    margin-bottom: 40px;
}

.toggle-wrapper {
    display: inline-flex;
    background: #e9ecef;
    padding: 5px;
    border-radius: 30px;
    position: relative;
}

.toggle-bg {
    position: absolute;
    left: 5px;
    top: 5px;
    width: 50%;
    height: calc(100% - 10px);
    background: white;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toggle-btn {
    position: relative;
    z-index: 1;
    border: none;
    background: none;
    padding: 10px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    transition: color 0.3s;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.plan-card-pricing {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.2s;
    position: relative;
}

.plan-card-pricing:hover {
    transform: translateY(-5px);
}

.plan-card-pricing.featured {
    border: 2px solid #667eea;
}

.plan-card-pricing.active-plan {
    border: 4px solid #28a745 !important;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.3);
}

.badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

.price-large {
    font-size: 3em;
    font-weight: bold;
    margin: 20px 0;
    color: #333;
}

.price-large small {
    font-size: 0.4em;
    color: #666;
    font-weight: normal;
}

.price-display {
    min-height: 80px;
}

.price-monthly {
    display: none;
}

.price-yearly {
    display: block;
}

.plan-features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
    margin-right: 10px;
}

/* Calculator */
.calculator-box {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.range-slider {
    width: 100%;
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    margin: 30px 0;
}

.calc-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.savings-badge {
    background: #d4edda;
    color: #155724;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    display: none;
}

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

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

/* Nav Buttons */
.btn-nav {
    background: white;
    color: #667eea !important;
    font-weight: bold;
}

.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.btn-manage {
    background: #28a745;
}

.btn-manage:hover {
    background: #218838;
}

/* Campaign Form */
.form-textarea {
    min-height: 300px;
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
}