* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0f2b4b;
    --primary-light: #1e4a6b;
    --secondary: #3498db;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --gray: #6c757d;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-menu a:hover {
    background: var(--light);
    color: var(--primary);
}

.btn-login, .btn-register, .btn-dashboard, .btn-logout {
    font-weight: 600;
}

.btn-register {
    background: var(--primary);
    color: var(--white) !important;
}

.btn-register:hover {
    background: var(--primary-light) !important;
    color: var(--white) !important;
}

.btn-logout {
    color: var(--danger) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 100px 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    text-align: center;
    font-size: 15rem;
    opacity: 0.3;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Plans Section */
.plans {
    padding: 80px 0;
    background: var(--white);
}

.plans h2, .features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.plan-card {
    background: var(--white);
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.plan-card.featured {
    border-color: var(--primary);
    background: linear-gradient(to bottom, var(--white), #f0f4f8);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.plan-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 30px;
}

.price span {
    font-size: 1rem;
    color: var(--gray);
}

.plan-card ul {
    list-style: none;
    margin-bottom: 30px;
}

.plan-card li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.plan-card li i {
    color: var(--success);
    margin-right: 10px;
}

.btn-plan {
    background: var(--primary);
    color: var(--white);
    width: 100%;
}

.btn-plan:hover {
    background: var(--primary-light);
    color: var(--white);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3, .footer-col h4 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col a {
    display: block;
    color: #bdc3c7;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--white);
    margin: 50px auto;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--gray);
    cursor: pointer;
}

.close:hover {
    color: var(--dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.modal-footer-text {
    text-align: center;
    margin-top: 20px;
}

.modal-footer-text a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

/* Dashboard */
.dashboard {
    padding: 50px 0;
}

.dashboard-header {
    margin-bottom: 40px;
}

.dashboard-header h1 {
    color: var(--primary);
    font-size: 2.5rem;
}

.dashboard-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.dashboard-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light);
}

.dashboard-card h3 i {
    margin-right: 10px;
}

.info-item {
    margin-bottom: 15px;
    padding: 10px;
    background: var(--light);
    border-radius: 5px;
}

.info-item strong {
    color: var(--primary);
}

.status-active {
    color: var(--success);
    font-weight: 600;
}

.status-suspended {
    color: var(--danger);
    font-weight: 600;
}

.plan-info {
    text-align: center;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 20px;
}

.plan-features {
    list-style: none;
    text-align: left;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.plan-features li i {
    color: var(--success);
    margin-right: 10px;
}

.quick-actions {
    display: grid;
    gap: 10px;
}

.btn-action {
    background: var(--light);
    color: var(--primary);
    border: 1px solid #e1e8ed;
    text-align: left;
    padding: 12px;
    display: block;
}

.btn-action:hover {
    background: var(--primary);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: var(--light);
    border-radius: 5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    color: var(--gray);
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .navbar .container {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}