/* DASHBOARD */
.dashboard {
    display: none;
    min-height: 100vh;
    background: var(--clr-bg-light);
}

.dashboard.active {
    display: block;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px;
}

.dashboard-header {
    margin-bottom: 48px;
}

.dashboard-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.dashboard-subtitle {
    font-size: 16px;
    color: var(--clr-text-muted);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.dashboard-stat-card {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s var(--ease);
    box-shadow: 0 2px 8px var(--clr-shadow);
}

.dashboard-stat-card:hover {
    border-color: var(--clr-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.15);
}

.dashboard-stat-icon {
    font-size: 40px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    flex-shrink: 0;
}

.dashboard-stat-info {
    flex: 1;
}

.dashboard-stat-label {
    font-size: 13px;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 6px;
}

.dashboard-stat-value {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
}

.dashboard-section-header {
    margin-bottom: 32px;
}

.dashboard-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.dashboard-service-card {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    padding: 36px;
    transition: all 0.3s var(--ease);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--clr-shadow);
}

.dashboard-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-hover));
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.dashboard-service-card:hover {
    border-color: var(--clr-accent);
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(220, 38, 38, 0.15);
}

.dashboard-service-card:hover::before {
    opacity: 1;
}

.dashboard-service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.dashboard-service-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.dashboard-service-card p {
    color: var(--clr-text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.dashboard-service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--clr-accent);
    font-size: 14px;
    font-weight: 600;
    transition: gap 0.2s var(--ease);
}

.dashboard-service-card:hover .dashboard-service-link {
    gap: 12px;
}

/* Service Modals */
.service-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--clr-border);
}

.service-modal-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    object-fit: cover;
    border: 1px solid var(--clr-border);
    border-radius: 50%;
}

.service-modal-title > span {
    display: block;
    margin-bottom: 3px;
    color: var(--clr-text-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.service-modal-title h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.billing-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.billing-item {
    background: var(--clr-bg-light);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s var(--ease);
    cursor: pointer;
}

.billing-item:hover {
    border-color: var(--clr-accent);
    box-shadow: 0 4px 12px var(--clr-shadow);
}

.billing-item.selected {
    border-color: var(--clr-accent);
    background: var(--clr-accent-light);
    box-shadow: 0 0 0 1px var(--clr-accent);
}

.billing-info h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.billing-info p {
    font-size: 13px;
    color: var(--clr-text-muted);
}

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

.billing-amount .amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--clr-accent);
    margin-bottom: 6px;
}

.billing-amount .status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
}

.status-paid {
    background: var(--clr-success-light);
    color: var(--clr-success);
}

.status-pending {
    background: var(--clr-warning-light);
    color: var(--clr-warning);
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.payment-option {
    padding: 16px;
    border: 2px solid var(--clr-border);
    border-radius: 12px;
    background: var(--clr-bg);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s var(--ease);
    font-weight: 600;
    font-size: 13px;
}

.payment-option:hover {
    border-color: var(--clr-accent);
    background: rgba(220, 38, 38, 0.05);
}

.payment-option.selected {
    background: var(--clr-accent);
    color: white;
    border-color: var(--clr-accent);
}

.doc-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.doc-type-btn {
    padding: 12px;
    border: 2px solid var(--clr-border);
    border-radius: 8px;
    background: var(--clr-bg);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s var(--ease);
    text-align: center;
}

.doc-type-btn:hover {
    border-color: var(--clr-accent);
    background: rgba(220, 38, 38, 0.05);
}

.doc-type-btn.selected {
    background: var(--clr-accent);
    color: white;
    border-color: var(--clr-accent);
}

.delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.delivery-option {
    padding: 20px;
    border: 2px solid var(--clr-border);
    border-radius: 12px;
    background: var(--clr-bg);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s var(--ease);
}

.delivery-option:hover {
    border-color: var(--clr-accent);
    background: rgba(220, 38, 38, 0.05);
}

.delivery-option.selected {
    background: var(--clr-accent);
    color: white;
    border-color: var(--clr-accent);
}

.delivery-option .delivery-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.delivery-option .delivery-label {
    font-weight: 600;
    font-size: 14px;
}

.delivery-option .delivery-desc {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 12px 24px;
    border: 1px solid var(--clr-border);
    background: var(--clr-bg);
    color: var(--clr-text);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    font-size: 14px;
}

.btn-secondary:hover {
    background: var(--clr-bg-light);
}

.form-success {
    background: var(--clr-success-light);
    border: 1px solid var(--clr-success);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 20px;
    color: var(--clr-success);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}


/* Notifications */
.notification-area {
    margin-bottom: 24px;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--clr-accent-light);
    border: 1px solid var(--clr-border);
    border-left: 4px solid var(--clr-accent);
    border-radius: 8px;
    margin-bottom: 8px;
    animation: fadeInUp 0.3s var(--ease);
}

.notification-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
    font-size: 14px;
    color: var(--clr-text);
}

.notification-time {
    font-size: 11px;
    color: var(--clr-text-muted);
    flex-shrink: 0;
}

.notification-dismiss {
    flex-shrink: 0;
    padding: 6px 12px;
    border: 1px solid var(--clr-border);
    background: var(--clr-bg-card);
    color: var(--clr-text-muted);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.notification-dismiss:hover {
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 6px;
}

.admin-confirmed {
    color: var(--clr-accent);
    font-size: 12px;
    font-weight: 600;
}


/* Transaction History */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: 10px;
    transition: all 0.2s var(--ease);
}

.history-item:hover {
    box-shadow: 0 2px 8px var(--clr-shadow);
}

.history-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--clr-text);
    margin-bottom: 4px;
}

.history-info p {
    font-size: 13px;
    color: var(--clr-text-muted);
}

.history-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.history-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-badge-success {
    background: var(--clr-success-light);
    color: var(--clr-success);
}

.history-badge-pending {
    background: var(--clr-warning-light);
    color: var(--clr-warning);
}

.history-badge-info {
    background: var(--clr-info-light);
    color: var(--clr-info);
}

.history-time {
    font-size: 11px;
    color: var(--clr-text-muted);
}

.history-empty {
    text-align: center;
    color: var(--clr-text-muted);
    padding: 32px;
    font-size: 14px;
}
