@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ----------------------------------------------------------------
   PLAN GRID STYLES
---------------------------------------------------------------- */
.ms-frontend-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #1a1a2e;
}

.ms-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.ms-section-eyebrow {
    color: #1D308C;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.ms-section-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.1;
    color: #1D308C;
}

.ms-section-subtitle {
    font-size: 18px;
    color: #64748b;
    line-height: 1.6;
}

.ms-fe-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.ms-fe-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 0;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(29, 48, 140, 0.06);
}

.ms-fe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(29, 48, 140, 0.12);
    border-color: #1D308C;
}

.ms-fe-card.ms-featured {
    border: 2px solid #1D308C;
    box-shadow: 0 14px 38px rgba(29, 48, 140, 0.13);
    z-index: 2;
}

.ms-fe-featured-ribbon {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #1D308C;
    color: #fff;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.ms-fe-card-heading {
    min-height: 114px;
    padding: 26px 28px 22px;
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
    border-bottom: 1px solid #e5e9f5;
    box-sizing: border-box;
}

.ms-featured .ms-fe-card-heading {
    background: linear-gradient(135deg, #1D308C 0%, #293fa8 100%);
}

.ms-fe-card-kicker {
    display: block;
    margin-bottom: 8px;
    color: #1D308C;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ms-featured .ms-fe-card-kicker {
    color: #cbd5ff;
}

.ms-fe-plan-name {
    max-width: calc(100% - 70px);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    color: #1D308C;
}

.ms-featured .ms-fe-plan-name {
    color: #fff;
}

.ms-fe-options {
    display: flex;
    flex-direction: column;
    padding: 10px 18px 18px;
}

.ms-fe-option {
    appearance: none;
    width: 100%;
    min-height: 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 28px;
    align-items: center;
    gap: 14px;
    padding: 14px 10px;
    border: 0;
    border-bottom: 1px solid #edf0f6;
    background: transparent;
    color: #1a1a2e;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, padding 0.2s ease;
}

.ms-fe-option:last-child {
    border-bottom: 0;
}

.ms-fe-option:hover,
.ms-fe-option:focus-visible {
    padding-left: 16px;
    padding-right: 14px;
    background: #f6f8ff;
    border-radius: 12px;
    outline: none;
}

.ms-fe-option-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ms-fe-option-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    color: #29324a;
}

.ms-fe-option-note {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
}

.ms-fe-option-price {
    color: #1D308C;
    font-size: 21px;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: -0.4px;
}

.ms-fe-option-arrow {
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf1ff;
    color: #1D308C;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ms-fe-option:hover .ms-fe-option-arrow,
.ms-fe-option:focus-visible .ms-fe-option-arrow {
    transform: translateX(3px);
    background: #1D308C;
    color: #fff;
}

.ms-fe-option--disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.ms-fe-cta--loading {
    opacity: 0.7;
    pointer-events: none;
}

@media (max-width: 760px) {
    .ms-frontend-wrap {
        padding: 42px 16px;
    }

    .ms-section-header {
        margin-bottom: 34px;
    }

    .ms-section-title {
        font-size: 34px;
    }

    .ms-section-subtitle {
        font-size: 16px;
    }

    .ms-fe-grid {
        grid-template-columns: 1fr;
    }

    .ms-fe-card-heading {
        min-height: 105px;
        padding: 24px;
    }

    .ms-fe-options {
        padding: 8px 14px 14px;
    }
}

/* ----------------------------------------------------------------
   AUTH FORM STYLES
---------------------------------------------------------------- */
.ms-auth-wrap {
    padding: 80px 20px;
    background: #f8f8fb;
    min-height: 400px;
    display: flex;
    justify-content: center;
}

.ms-auth-card {
    background: #fff;
    width: 100%;
    max-width: 440px;
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.ms-auth-header-icon {
    width: 64px;
    height: 64px;
    background: #f0f4ff;
    color: #1D308C;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.ms-auth-header-icon svg {
    width: 32px;
    height: 32px;
}

.ms-auth-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px;
    text-align: center;
}

.ms-auth-subtitle {
    font-size: 15px;
    color: #666;
    text-align: center;
    margin-bottom: 32px;
}

.ms-auth-field {
    margin-bottom: 20px;
}

.ms-auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ms-input-wrap {
    position: relative;
}

.ms-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #aaa;
}

.ms-auth-form input {
    width: 100% !important;
    padding: 12px 16px 12px 42px !important;
    border: 1.5px solid #e0e0ee !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    background: #fff !important;
}

.ms-auth-btn {
    width: 100%;
    padding: 14px;
    background: #1D308C !important;
    color: #fff !important;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.ms-auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.ms-auth-link {
    color: #1D308C;
    text-decoration: none;
    font-weight: 600;
}

/* ----------------------------------------------------------------
   USER DASHBOARD STYLES
---------------------------------------------------------------- */
.ms-dash-wrap {
    max-width: 1200px;
    margin: 40px auto;
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
}

.ms-dash-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 991px) {
    .ms-dash-grid {
        grid-template-columns: 1fr;
    }
}

.ms-dash-sidebar {
    background: #fff;
    border: 1px solid #e0e0ee;
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.ms-dash-user-card {
    text-align: center;
    padding-bottom: 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f5;
}

.ms-dash-avatar {
    width: 80px;
    height: 80px;
    background: #1D308C;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 15px;
}

.ms-dash-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ms-dash-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    text-decoration: none;
    color: #444;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ms-dash-nav-item svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    opacity: 0.7;
}

.ms-dash-nav-item:hover {
    background: #f0f4ff;
    color: #1D308C;
}

.ms-dash-nav-item.active {
    background: #1D308C;
    color: #fff;
    box-shadow: 0 8px 16px rgba(29, 48, 140, 0.2);
}

.ms-dash-main {
    background: #fff;
    border: 1px solid #f0f0f5;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.ms-tab-header {
    margin-bottom: 35px;
}

.ms-tab-header h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}

.ms-form-section {
    margin-bottom: 48px;
    padding: 32px;
    background: #fcfcfd;
    border-radius: 20px;
    border: 1px solid #f0f0f5;
}

.ms-form-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1D308C;
    margin: 0 0 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

@media (max-width: 600px) {
    .ms-form-row {
        grid-template-columns: 1fr;
    }
	
	.ms-fe-grid {
    grid-template-columns: repeat(1, 1fr) !important;
}
}

.ms-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.ms-form-group input,
.ms-form-group textarea {
    width: 100% !important;
    padding: 12px 18px !important;
    border: 1.5px solid #e0e0ee !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    background: #fff !important;
    transition: all 0.2s !important;
}

.ms-profile-submit {
    background: #1D308C !important;
    color: #fff !important;
    border: none !important;
    padding: 16px 40px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-shadow: 0 10px 20px rgba(29, 48, 140, 0.15) !important;
}

.ms-profile-submit:hover {
    background: #16246b !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 24px rgba(29, 48, 140, 0.2) !important;
}

.ms-active-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.ms-active-plan-card {
    border: 1px solid #e0e0ee;
    border-radius: 12px;
    padding: 20px;
    background: #fcfcfd;
}

.ms-plan-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.ms-plan-status.active {
    background: #dcfce7;
    color: #166534;
}

.ms-dash-portal-btn {
    background: #f4f4f8;
    color: #1D308C;
    border: 1px solid #e0e0ee;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}
.ms-plan-icon {
    font-size: 28px;
    margin-bottom: 10px;
    color: #1D308C;
}

.ms-active-plan-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}

.ms-plan-status.inactive {
    background: #f1f5f9;
    color: #64748b;
}

.ms-plan-meta {
    font-size: 12px;
    color: #888;
    margin: 8px 0 0 0;
}

.ms-no-plans {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    background: #f9f9fc;
    border-radius: 12px;
    border: 1px dashed #d0d0e8;
}

.ms-no-plans a {
    color: #1D308C;
    font-weight: 600;
}

.ms-profile-status {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.ms-status-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.ms-status-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ----------------------------------------------------------------
   GOOGLE SIGN-IN BUTTON & AUTH DIVIDER
---------------------------------------------------------------- */
.ms-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ms-auth-divider::before,
.ms-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.ms-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 13px 20px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    margin-bottom: 4px;
    user-select: none;
}

.ms-google-btn:hover {
    border-color: #1D308C;
    background: #f8faff;
    box-shadow: 0 2px 8px rgba(29, 48, 140, 0.08);
    transform: translateY(-1px);
}

.ms-google-btn:active {
    transform: translateY(0);
}

.ms-google-btn--loading {
    opacity: 0.7;
    pointer-events: none;
    cursor: not-allowed;
}

.ms-google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
