/* ============================================
   --> SEREIN DASHBOARD STYLES
   ============================================ */

.dashboard-body {
    background-color: var(--primary-black);
    padding-top: 100px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Header Adjustments */
.dashboard-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back-home:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 255, 255, 0.05);
}

/* Container */
.dashboard-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 35px;
}

.welcome-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.welcome-title {
    font-size: 38px;
    font-weight: 900;
    color: var(--text-primary);
}

.user-highlight {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 300;
}

/* Common Card Base */
.dash-card {
    background: linear-gradient(145deg, rgba(22, 22, 30, 0.75), rgba(14, 14, 20, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(15px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dash-card:hover {
    border-color: rgba(153, 69, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Card Header */
.card-header {
    margin-bottom: 25px;
}

.card-header.space-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-title-group h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-icon {
    font-size: 18px;
    padding: 10px;
    border-radius: 12px;
}

.sub-icon {
    background: rgba(153, 69, 255, 0.15);
    color: var(--accent-purple);
}

.account-icon {
    background: rgba(0, 255, 255, 0.15);
    color: var(--accent-cyan);
}

/* Grid Layouts */
.dashboard-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
}

.top-grid {
    grid-template-columns: 1fr 1.3fr;
}

/* Sub Card */
.plan-title {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 6px;
    color: #fff;
}

.plan-renew-info {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 25px;
}

.progress-box {
    margin-bottom: 25px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
}

.cyan-purple-glow {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
}

.sub-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.stat-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 15px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-dim);
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
}

.highlight-cyan {
    color: var(--accent-cyan);
}

.sub-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.btn-dash {
    font-family: inherit;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
}

.btn-text-danger {
    background: transparent;
    color: var(--accent-red);
    opacity: 0.8;
}

.btn-text-danger:hover {
    opacity: 1;
    text-shadow: 0 0 8px rgba(255, 51, 51, 0.4);
}

.btn-edit {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-edit:hover {
    color: #fff;
    border-color: var(--accent-cyan);
}

/* Account Form */
.account-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-row.full-width {
    grid-template-columns: 1fr;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 12px;
    color: var(--text-dim);
}

.form-field input {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.ltr-input {
    direction: ltr;
    text-align: left;
}

/* Usage Section */
.usage-section, .plans-section {
    margin-bottom: 50px;
}

.section-title-wrapper {
    margin-bottom: 20px;
}

.section-title-wrapper h2 {
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.section-title-wrapper p {
    font-size: 13px;
    color: var(--text-dim);
}

.usage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.usage-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.usage-info h4 {
    font-size: 18px;
    font-weight: 800;
}

.usage-subtext {
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.usage-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.filmew-badge { background: rgba(153, 69, 255, 0.15); color: var(--accent-purple); }
.gamew-badge { background: rgba(0, 255, 255, 0.15); color: var(--accent-cyan); }
.mewsic-badge { background: rgba(0, 255, 136, 0.15); color: var(--accent-green); }
.mewmi-badge { background: rgba(217, 70, 239, 0.15); color: #d946ef; }

.usage-value-group {
    margin-bottom: 12px;
}

.big-number {
    font-size: 32px;
    font-weight: 900;
    margin-left: 5px;
}

.unit-text {
    font-size: 12px;
    color: var(--text-dim);
}

.purple-fill { background: var(--accent-purple); box-shadow: 0 0 10px rgba(153, 69, 255, 0.5); }
.cyan-fill { background: var(--accent-cyan); box-shadow: 0 0 10px rgba(0, 255, 255, 0.5); }
.green-fill { background: var(--accent-green); box-shadow: 0 0 10px rgba(0, 255, 136, 0.5); }
.pink-fill { background: #d946ef; box-shadow: 0 0 10px rgba(217, 70, 239, 0.5); }

.usage-footer-note {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 12px;
}

/* Plans Section */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-items: center;
}

.plan-card {
    text-align: center;
    padding: 35px 25px;
}

.active-plan-card {
    border: 2px solid var(--accent-purple);
    box-shadow: 0 0 30px rgba(153, 69, 255, 0.2);
    transform: scale(1.03);
}

.current-plan-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-cyan);
    color: #000;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 16px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.plan-name {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
}

.glow-cyan {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

.plan-price {
    margin-bottom: 25px;
}

.price-num {
    font-size: 32px;
    font-weight: 900;
    display: block;
}

.price-period {
    font-size: 12px;
    color: var(--text-dim);
}

.plan-features {
    list-style: none;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 13px;
    color: var(--text-secondary);
}

.plan-features i {
    color: var(--accent-green);
    margin-left: 8px;
}

.btn-plan-action {
    width: 100%;
    padding: 14px;
    font-size: 14px;
}

.primary-purple {
    background: var(--accent-purple);
    color: #fff;
}

.primary-purple:hover {
    box-shadow: 0 0 15px rgba(153, 69, 255, 0.5);
}

.primary-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #000;
}

.primary-gradient:hover {
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.current-active-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================
   --> RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .top-grid {
        grid-template-columns: 1fr;
    }
    .usage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .plans-grid {
        grid-template-columns: 1fr;
    }
    .active-plan-card {
        transform: scale(1);
    }
}

@media (max-width: 600px) {
    .usage-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .welcome-title {
        font-size: 28px;
    }
}