/* Dashboard Specific Styles */

.dashboard-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 80vh;
    gap: 30px;
    padding: 40px 0;
}

/* Sidebar */
.dash-sidebar {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 46, 99, 0.1);
    padding: 25px;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.user-profile {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 46, 99, 0.2);
    margin-bottom: 20px;
}

.user-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-red), var(--neon-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin: 0 auto 15px;
    box-shadow: var(--glow-box);
}

.user-profile h3 {
    color: var(--text-main);
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.user-email {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.dash-nav {
    list-style: none;
    padding: 0;
}

.dash-nav li {
    margin-bottom: 8px;
}

.dash-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-fast);
    font-weight: 500;
}

.dash-nav a.active,
.dash-nav a:hover {
    background: rgba(217, 4, 41, 0.1);
    color: var(--neon-red);
    border-left: 3px solid var(--neon-red);
}

/* Content Sections */
.dash-content {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 46, 99, 0.1);
    border-radius: 12px;
    padding: 35px;
    display: none;
}

.dash-content.active {
    display: block;
}

.section-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 46, 99, 0.2);
}

.section-header h2 {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Subscriptions Section */
.subscriptions-grid {
    display: grid;
    gap: 25px;
}

.subscription-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 46, 99, 0.2);
    border-radius: 12px;
    padding: 25px;
    transition: var(--transition-fast);
}

.subscription-card:hover {
    border-color: var(--neon-red);
    box-shadow: var(--glow-box);
}

.subscription-card.expired {
    opacity: 0.6;
    border-color: rgba(255, 255, 255, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-info h3 {
    color: var(--text-main);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(0, 255, 0, 0.1);
    color: #0f0;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.status-expired {
    background: rgba(255, 0, 0, 0.1);
    color: #f00;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.next-billing {
    text-align: right;
}

.next-billing .label {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.next-billing .date {
    display: block;
    color: var(--gold);
    font-weight: 600;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.plan-features li {
    color: var(--text-main);
    font-size: 0.9rem;
    padding: 8px 0;
}

.card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-action {
    flex: 1;
    min-width: 120px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 46, 99, 0.3);
    border-radius: 8px;
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    font-family: var(--font-body);
}

.btn-action:hover {
    background: rgba(217, 4, 41, 0.15);
    border-color: var(--neon-red);
}

.btn-action.highlighted {
    background: var(--primary-red);
    border-color: var(--neon-red);
    color: white;
    box-shadow: var(--glow-box);
}

/* Orders Section */
.orders-table-container {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table thead {
    background: rgba(217, 4, 41, 0.1);
}

.orders-table th {
    padding: 15px;
    text-align: left;
    color: var(--gold);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-red);
}

.orders-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.orders-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.amount {
    color: var(--gold);
    font-weight: 600;
}

.order-status {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.order-status.completed {
    background: rgba(0, 255, 0, 0.1);
    color: #0f0;
}

.order-status.pending {
    background: rgba(255, 165, 0, 0.1);
    color: orange;
}

.btn-invoice {
    padding: 6px 12px;
    background: rgba(255, 46, 99, 0.1);
    border: 1px solid var(--primary-red);
    border-radius: 6px;
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.85rem;
    margin-right: 5px;
    transition: var(--transition-fast);
}

.btn-invoice:hover {
    background: var(--primary-red);
}

.btn-invoice.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Billing Section */
.billing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.billing-section h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.payment-card {
    background: linear-gradient(135deg, rgba(217, 4, 41, 0.1), rgba(178, 75, 243, 0.1));
    border: 1px solid rgba(255, 46, 99, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.card-visual {
    margin-bottom: 15px;
}

.card-number {
    font-size: 1.3rem;
    color: var(--text-main);
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.card-details {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.card-actions-inline {
    display: flex;
    gap: 10px;
}

.btn-icon-action {
    flex: 1;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-icon-action:hover {
    background: rgba(217, 4, 41, 0.2);
    border-color: var(--neon-red);
}

.btn-add-payment {
    width: 100%;
    padding: 15px;
    background: rgba(217, 4, 41, 0.1);
    border: 2px dashed var(--primary-red);
    border-radius: 12px;
    color: var(--neon-red);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-add-payment:hover {
    background: rgba(217, 4, 41, 0.2);
    border-style: solid;
}

.billing-history {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
}

.billing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.billing-item:last-child {
    border-bottom: none;
}

.billing-item.refund .billing-amount {
    color: #0f0;
}

.billing-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.billing-desc {
    color: var(--text-main);
    font-weight: 500;
}

.billing-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.billing-amount {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Settings Section */
.settings-container {
    display: grid;
    gap: 30px;
}

.settings-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 46, 99, 0.1);
    border-radius: 12px;
    padding: 25px;
}

.settings-section h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-main);
    margin-bottom: 8px;
    font-weight: 500;
}

.settings-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.settings-input:focus {
    outline: none;
    border-color: var(--neon-red);
    background: rgba(255, 255, 255, 0.08);
}

.btn-save {
    padding: 12px 30px;
    background: var(--primary-red);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--glow-box);
}

.btn-save:hover {
    background: var(--neon-red);
    box-shadow: 0 0 25px rgba(255, 46, 99, 0.5);
}

.security-option,
.notification-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
}

.option-info h4 {
    color: var(--text-main);
    margin-bottom: 5px;
    font-size: 1rem;
}

.option-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked+.toggle-slider {
    background: linear-gradient(135deg, var(--primary-red), var(--neon-purple));
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(24px);
}

/* Responsive */
@media (max-width: 992px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        position: static;
    }

    .plan-features ul {
        grid-template-columns: 1fr;
    }

    .billing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .card-actions {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
    }

    .orders-table {
        font-size: 0.85rem;
    }

    .orders-table th,
    .orders-table td {
        padding: 10px 8px;
    }
}