/* ===========================================================
   YouTest Membership Center
=========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
    line-height: 1.5;
}

/* ===========================================================
   Container
=========================================================== */
.membership-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

/* ===========================================================
   Hero
=========================================================== */
.hero {
    background: linear-gradient(135deg, #1565c0, #1e88e5);
    color: white;
    border-radius: 18px;
    padding: 50px;
    text-align: center;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.hero p {
    font-size: 1.1rem;
    opacity: .95;
    max-width: 650px;
    margin: auto;
}

/* ===========================================================
   Section Heading
=========================================================== */
section {
    margin-bottom: 40px;
}

section h2 {
    margin-bottom: 18px;
    color: #1565c0;
    font-size: 1.5rem;
}

/* ===========================================================
   Generic Card
=========================================================== */
.card {
    background: white;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
    transition: .25s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
}

/* ===========================================================
   Grid
=========================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* ===========================================================
   Account Card
=========================================================== */
#accountSection {
    margin-bottom: 35px;
}

#accountContent {
    margin-top: 15px;
    font-size: 1rem;
}

#accountContent h3 {
    margin-top: 18px;
    margin-bottom: 12px;
    color: #1565c0;
}

#accountContent ul {
    margin-left: 18px;
}

#accountContent li {
    margin-bottom: 12px;
}

/* ===========================================================
   Plan Card
=========================================================== */
.plan-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    position: relative;
}

.plan-card h3 {
    color: #1565c0;
    font-size: 1.45rem;
    margin-bottom: 12px;
}

.plan-card p {
    color: #555;
    margin-bottom: 12px;
}

.price {
    font-size: 2rem;
    color: #0d47a1;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 20px;
}

/* ===========================================================
   Credit Pack Card
=========================================================== */
.credit-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 330px;
}

.credit-card h3 {
    color: #2e7d32;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.credit-card p {
    margin-bottom: 12px;
}

.credit-count {
    font-size: 1.4rem;
    font-weight: bold;
    color: #1565c0;
}

.bonus {
    color: #2e7d32;
    font-weight: bold;
}

/* ===========================================================
   Badge
=========================================================== */
.badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #ff9800;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: bold;
    letter-spacing: .4px;
}

/* ===========================================================
   Buttons
=========================================================== */
button {
    border: none;
    border-radius: 10px;
    padding: 13px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: .25s;
}

.buy-plan-btn {
    background: #1565c0;
    color: white;
}

.buy-plan-btn:hover {
    background: #0d47a1;
}

.buy-credit-btn {
    background: #2e7d32;
    color: white;
}

.buy-credit-btn:hover {
    background: #1b5e20;
}

button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ===========================================================
   Feature List
=========================================================== */
.feature-list {
    list-style: none;
    margin-top: 15px;
}

.feature-list li {
    margin-bottom: 8px;
    color: #444;
}

.feature-list li::before {
    content: "✓ ";
    color: #2e7d32;
    font-weight: bold;
}

/* ===========================================================
   Highlight Card
=========================================================== */
.recommended {
    border: 3px solid #ff9800;
}

/* ===========================================================
   Responsive
=========================================================== */
@media(max-width:900px) {
    .hero {
        padding: 35px 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

@media(max-width:600px) {
    .membership-container {
        padding: 15px;
    }

    .hero {
        padding: 28px 18px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .price {
        font-size: 1.6rem;
    }

    section h2 {
        font-size: 1.3rem;
    }
}

.trial-card {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
    gap: 16px;
    margin-top: 15px;
}

.trial-item {
    background: #f7f9fc;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.trial-item strong {
    color: #1976d2;
}

@media (max-width:768px) {
    .trial-card {
        grid-template-columns: 1fr 1fr;
    }
}

.trial-progress-wrapper {
    background: white;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

.trial-summary {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.trial-progress-bar {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
}

.trial-progress-fill {
    height: 100%;
    background: #1976d2;
    border-radius: 20px;
}

.trial-remaining {
    margin-top: 10px;
    color: #555;
}

.premium-status-card {
    grid-template-columns: 1fr 1fr;
}

.premium-access-list {
    list-style: none;
    margin-top: 10px;
    padding: 0;
}

.premium-access-list li {
    margin-bottom: 6px;
}

.premium-access-list li::before {
    content: "✓ ";
    color: #2e7d32;
    font-weight: bold;
}

/* ===========================================================
   Premium Product Access
=========================================================== */

.premium-access-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

.premium-access-card h3 {
    margin-bottom: 8px;
    color: #1565c0;
}

.premium-access-card p {
    color: #555;
    margin-bottom: 10px;
}

/* ===========================================================
   Trial Access Card
=========================================================== */

.trial-access-card {
    background: white;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

.trial-access-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.trial-access-header h3 {
    color: #1565c0;
    margin-bottom: 5px;
}

.trial-access-header p {
    color: #666;
    font-size: .95rem;
}

.trial-count {
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap;
}

.trial-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.trial-stat {
    background: #f7f9fc;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.trial-stat-label {
    display: block;
    color: #1565c0;
    font-weight: bold;
    margin-bottom: 5px;
}

.trial-stat strong {
    font-size: 1.1rem;
}

@media(max-width:768px) {

    .trial-access-header {
        flex-direction: column;
    }

    .trial-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width:768px) {
    .premium-status-card {
        grid-template-columns: 1fr;
    }
}