/* ===== Müşteri Panel CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #c9a94e;
    --primary-dark: #a88b3d;
    --primary-light: #e0c068;
    --secondary: #0d0d0d;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg: #f5f5f5;
    --white: #fff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gold-gradient: linear-gradient(135deg, #c9a94e 0%, #e0c068 50%, #c9a94e 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* ===== Auth Screen ===== */
.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    text-align: center;
}

.auth-logo-link {
    text-decoration: none;
}

.auth-logo {
    margin-bottom: 8px;
}

.auth-logo-name {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.auth-logo-surname {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 8px;
    text-transform: uppercase;
}

.auth-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.auth-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    text-align: left;
}

.auth-box h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 20px;
    text-align: center;
}

.auth-box h2 i {
    color: var(--primary);
    margin-right: 8px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group label i {
    color: var(--primary);
    margin-right: 6px;
    width: 16px;
    text-align: center;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkbox-group {
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    cursor: pointer;
}

.checkbox-label input { width: auto; }

.auth-error {
    color: var(--danger);
    font-size: 0.85rem;
    text-align: center;
    min-height: 20px;
    margin-bottom: 8px;
}

.btn-auth {
    width: 100%;
    padding: 14px;
    background: var(--gold-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.4);
}

.btn-register {
    background: linear-gradient(135deg, var(--success), #2ecc71);
}

.btn-register:hover {
    box-shadow: 0 4px 16px rgba(39, 174, 96, 0.4);
}

.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.back-to-site {
    display: inline-block;
    margin-top: 20px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.back-to-site:hover {
    color: rgba(255,255,255,0.8);
}

/* ===== Dashboard ===== */
.dashboard {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dash-header {
    background: var(--secondary);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dash-logo {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.dash-logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.dash-logo-surname {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.dash-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dash-user-name {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-logout {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

/* ===== Dashboard Nav ===== */
.dash-nav {
    background: var(--white);
    display: flex;
    gap: 4px;
    padding: 8px 16px;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    position: sticky;
    top: 56px;
    z-index: 99;
}

.dash-nav-btn {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.dash-nav-btn:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.dash-nav-btn.active {
    background: linear-gradient(135deg, #fef3d0, #fdf0c0);
    color: var(--primary);
    font-weight: 600;
}

/* ===== Content ===== */
.dash-content {
    flex: 1;
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.dash-tab {
    display: none;
}

.dash-tab.active {
    display: block;
}

.tab-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 20px;
}

.tab-title i {
    color: var(--primary);
    margin-right: 8px;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.loading-spinner i {
    color: var(--primary);
    margin-right: 8px;
}

/* ===== Welcome Banner ===== */
.welcome-banner {
    background: var(--gold-gradient);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 24px;
    color: #fff;
}

.welcome-text h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.welcome-text p {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-info h4 {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.stat-info p {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
}

/* ===== Section Card ===== */
.section-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
}

.section-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
}

.section-card-header h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

/* ===== Package Cards (Dashboard) ===== */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.no-data i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
    color: var(--gray-300);
}

.no-data a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.pkg-dash-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.pkg-dash-card:hover {
    box-shadow: var(--shadow-md);
}

.pkg-dash-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-200);
}

.pkg-dash-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
}

.pkg-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pkg-status.active {
    background: #e8f5e9;
    color: #27ae60;
}

.pkg-status.expired {
    background: #fce4ec;
    color: #e74c3c;
}

.pkg-status.completed {
    background: #e3f2fd;
    color: #2196f3;
}

.pkg-status.cancelled {
    background: #f5f5f5;
    color: #999;
}

.pkg-dash-meta {
    padding: 12px 20px;
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--gray-100);
    flex-wrap: wrap;
}

.pkg-dash-meta span i {
    margin-right: 4px;
    color: var(--primary);
}

/* ===== Service Usage Items ===== */
.pkg-services {
    padding: 16px 20px;
}

.service-usage-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.service-usage-item:last-child {
    border-bottom: none;
}

.service-usage-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.service-usage-icon.available {
    background: #e8f5e9;
    color: #27ae60;
}

.service-usage-icon.unlimited {
    background: linear-gradient(135deg, #fef3d0, #fdf0c0);
    color: var(--primary);
}

.service-usage-icon.used-up {
    background: #f5f5f5;
    color: #ccc;
}

.service-usage-info {
    flex: 1;
}

.service-usage-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

.service-usage-progress {
    margin-top: 6px;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.service-usage-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.service-usage-bar.green { background: #27ae60; }
.service-usage-bar.yellow { background: #f39c12; }
.service-usage-bar.red { background: #e74c3c; }
.service-usage-bar.gold { background: var(--primary); }

.service-usage-count {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: right;
    min-width: 80px;
    white-space: nowrap;
}

.service-usage-count.unlimited {
    color: var(--primary);
    font-weight: 700;
}

/* ===== Usage History ===== */
.history-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-100);
}

.history-item:last-child {
    border-bottom: none;
}

.history-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #e8f5e9;
    color: #27ae60;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.history-info {
    flex: 1;
}

.history-service {
    font-size: 0.9rem;
    font-weight: 500;
}

.history-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== Profile ===== */
.profile-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.profile-header {
    background: var(--gold-gradient);
    padding: 32px 24px;
    text-align: center;
    color: #fff;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 12px;
    border: 3px solid rgba(255,255,255,0.3);
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 600;
}

.profile-phone {
    opacity: 0.8;
    font-size: 0.9rem;
    margin-top: 4px;
}

.profile-body {
    padding: 24px;
}

.profile-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gray-100);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
}

.profile-item-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.profile-item-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

/* ===== CTA Card ===== */
.cta-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    color: #fff;
    margin-top: 24px;
}

.cta-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.cta-card p {
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cta.primary {
    background: var(--gold-gradient);
    color: #fff;
}

.btn-cta.whatsapp {
    background: #25D366;
    color: #fff;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* ===== Footer ===== */
.dash-footer {
    background: var(--secondary);
    padding: 16px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    margin-top: auto;
}

.dash-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .auth-box { padding: 24px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .dash-header { padding: 12px 16px; }
    .dash-content { padding: 16px; }

    .dash-nav-btn span {
        display: none;
    }

    .dash-nav-btn {
        padding: 12px;
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .welcome-banner {
        padding: 20px;
    }

    .welcome-text h2 {
        font-size: 1.1rem;
    }

    .pkg-dash-meta {
        flex-direction: column;
        gap: 4px;
    }

    .service-usage-item {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .auth-logo-name { font-size: 2rem; }
    .stat-card { padding: 14px; }
    .stat-info p { font-size: 1.1rem; }
}
