/* ===================================
   MCB AI Style - Membership + Login
   =================================== */

/* === MEMBERSHIP PAGE === */
.mcb-membership-hero {
    text-align: center;
    padding: 60px 24px 40px;
}

.mcb-membership-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.mcb-membership-heading {
    font-family: 'Inter', sans-serif !important;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.mcb-membership-sub {
    color: rgb(156, 163, 175);
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.mcb-membership-content {
    padding: 0 24px 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.mcb-membership-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

/* Plan Cards */
.mcb-plans-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mcb-plan-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
}

.mcb-plan-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.mcb-plan-active {
    border-color: rgba(124, 92, 255, 0.4) !important;
    background: rgba(124, 92, 255, 0.05) !important;
    box-shadow: 0 0 40px rgba(124, 92, 255, 0.1);
}

.mcb-plan-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s;
}

.mcb-plan-active .mcb-plan-radio {
    border-color: #2563EB;
    background: #2563EB;
    box-shadow: inset 0 0 0 4px #0b0f19;
}

.mcb-plan-info {
    flex: 1;
    min-width: 0;
}

.mcb-plan-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.mcb-plan-header h3 {
    font-family: 'Inter', sans-serif !important;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.mcb-plan-duration {
    padding: 3px 10px;
    border-radius: 9999px;
    background: rgba(124, 92, 255, 0.15);
    color: #a78bfa;
    font-size: 11px;
    font-weight: 600;
}

.mcb-plan-desc {
    color: rgb(107, 114, 128);
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.mcb-plan-pricing {
    text-align: right;
    flex-shrink: 0;
}

.mcb-plan-price {
    display: block;
    font-family: 'Inter', sans-serif !important;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.mcb-plan-original {
    font-size: 13px;
    color: #6b7280;
    text-decoration: line-through;
}

.mcb-plan-popular {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 4px 14px;
    border-radius: 9999px;
    background: rgba(250, 204, 21, 0.15);
    border: 1px solid rgba(250, 204, 21, 0.3);
    color: #facc15;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Benefits */
.mcb-benefits-section {
    padding: 28px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    margin-top: 8px;
}

.mcb-benefits-section h4 {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 20px;
}

.mcb-vip-tag {
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    font-size: 10px;
    font-weight: 700;
    margin-left: 8px;
}

.mcb-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mcb-benefit-item {
    color: rgb(209, 213, 219);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 0;
}

/* Payment Card */
.mcb-payment-card {
    position: sticky;
    top: 100px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 32px;
}

.mcb-payment-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 28px;
}

.mcb-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
    color: rgb(156, 163, 175);
}

.mcb-payment-row strong {
    color: #fff;
    font-weight: 700;
}

.mcb-payment-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 8px 0;
}

.mcb-payment-total strong {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
}

.mcb-payment-btn {
    display: block;
    text-align: center;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none !important;
    margin-top: 24px;
    transition: all 0.2s;
}

.mcb-payment-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.mcb-payment-note {
    text-align: center;
    color: rgb(75, 85, 99);
    font-size: 12px;
    margin-top: 12px;
}

/* === LOGIN PAGE === */
.mcb-login-page {
    min-height: calc(100vh - 81px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    position: relative;
}

.mcb-login-back {
    position: absolute;
    top: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgb(156, 163, 175) !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: color 0.15s;
}

.mcb-login-back:hover {
    color: #fff !important;
}

.mcb-login-badge {
    padding: 8px 20px;
    border-radius: 9999px;
    background: rgba(124, 92, 255, 0.1);
    border: 1px solid rgba(124, 92, 255, 0.3);
    color: #a78bfa;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 32px;
}

.mcb-login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    padding: 40px 36px;
}

.mcb-login-header {
    text-align: center;
    margin-bottom: 32px;
}

.mcb-login-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(124, 92, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}

.mcb-login-header h1 {
    font-family: 'Inter', sans-serif !important;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.mcb-login-header p {
    color: rgb(156, 163, 175);
    font-size: 14px;
}

/* Google Login */
.mcb-login-google {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.mcb-login-google:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Social Login Icons Row (Facebook, GitHub) */
.mcb-social-login-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
}

.mcb-social-icon-btn {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.mcb-social-icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.mcb-login-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.mcb-login-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.mcb-login-divider span {
    position: relative;
    z-index: 1;
    padding: 0 16px;
    background: rgb(11, 15, 25);
    color: rgb(107, 114, 128);
    font-size: 13px;
}

/* Form */
.mcb-login-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mcb-login-label {
    font-family: 'Inter', sans-serif !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgb(107, 114, 128);
    margin-bottom: 4px;
    margin-top: 12px;
}

.mcb-login-input {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.mcb-login-input::placeholder {
    color: rgb(75, 85, 99);
}

.mcb-login-input:focus {
    border-color: rgba(124, 92, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.1);
}

.mcb-login-submit {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: #8b5cf6;
    color: #fff;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.mcb-login-submit:hover {
    background: #7c3aed;
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.4);
    transform: translateY(-1px);
}

.mcb-login-footer {
    text-align: center;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mcb-login-footer a {
    color: #a78bfa !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
}

.mcb-login-footer a:hover {
    color: #c4b5fd !important;
}

.mcb-login-legal {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.mcb-login-legal a {
    color: rgb(75, 85, 99) !important;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none !important;
}

.mcb-login-legal a:hover {
    color: rgb(156, 163, 175) !important;
}

/* Login Tabs */
.mcb-login-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 24px;
    gap: 2px;
}

.mcb-login-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 11px;
    border: none;
    background: transparent;
    color: rgb(107, 114, 128);
    font-family: 'Inter', sans-serif !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.mcb-login-tab:hover {
    color: rgb(156, 163, 175);
    background: rgba(255, 255, 255, 0.03);
}

.mcb-login-tab.active {
    background: rgba(139, 92, 246, 0.12);
    color: #c4b5fd;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

/* Tab Content */
.mcb-login-tab-content {
    display: none;
}

.mcb-login-tab-content.active {
    display: block;
    animation: mcbTabFadeIn 0.3s ease;
}

@keyframes mcbTabFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Magic Link Description */
.mcb-magic-desc {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.12);
    margin-bottom: 20px;
    color: rgb(196, 181, 253);
    font-size: 13px;
    line-height: 1.5;
}

.mcb-magic-desc i {
    flex-shrink: 0;
    margin-top: 2px;
}

.c-purple {
    color: #a78bfa;
}

.c-green {
    color: #34d399;
}

/* OTP Input Group */
.mcb-otp-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.mcb-otp-input {
    width: 48px;
    height: 56px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Inter', sans-serif !important;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: all 0.2s ease;
    caret-color: #8b5cf6;
}

.mcb-otp-input:focus {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
    background: rgba(139, 92, 246, 0.05);
}

.mcb-otp-input.filled {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.05);
}

.mcb-otp-input.error {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    animation: mcbShake 0.4s ease;
}

@keyframes mcbShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-4px); }
}

/* Magic Link Resend Row */
.mcb-magic-resend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.mcb-magic-resend-btn,
.mcb-magic-change-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: rgb(156, 163, 175);
    font-family: 'Inter', sans-serif !important;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mcb-magic-resend-btn:hover,
.mcb-magic-change-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
}

.mcb-magic-resend-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Passkey Section */
.mcb-passkey-section {
    text-align: center;
    padding: 12px 0;
}

.mcb-passkey-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #a78bfa;
}

.mcb-passkey-section h3 {
    font-family: 'Inter', sans-serif !important;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.mcb-passkey-section p {
    color: rgb(107, 114, 128);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.mcb-passkey-btn {
    width: 100%;
    padding: 16px 24px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.mcb-passkey-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
    transform: translateY(-1px);
}

.mcb-passkey-btn:active {
    transform: translateY(0);
}

.mcb-passkey-note,
.mcb-passkey-unsupported {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
}

.mcb-passkey-note {
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.12);
    color: rgb(147, 197, 253);
}

.mcb-passkey-unsupported {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: rgb(252, 165, 165);
}

.mcb-passkey-note i,
.mcb-passkey-unsupported i {
    flex-shrink: 0;
    margin-top: 1px;
}

/* =============================================
   USER SURVEY POPUP
   ============================================= */

/* Overlay */
.mcb-survey-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: mcbSurveyFadeIn 0.3s ease;
}

@keyframes mcbSurveyFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal */
.mcb-survey-modal {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(26, 26, 46, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    animation: mcbSurveySlideUp 0.35s ease;
}

@keyframes mcbSurveySlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.mcb-survey-modal-inner {
    padding: 36px 32px 28px;
}

/* Header */
.mcb-survey-header {
    text-align: center;
    margin-bottom: 28px;
}

.mcb-survey-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}

.mcb-survey-header h2 {
    font-family: 'Inter', sans-serif !important;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.mcb-survey-header p {
    font-size: 14px;
    color: rgb(156, 163, 175);
    line-height: 1.5;
}

/* Progress Steps */
.mcb-survey-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.mcb-survey-step {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mcb-survey-step.active {
    width: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-color: rgba(139, 92, 246, 0.4);
}

.mcb-survey-step.done {
    background: #22c55e;
    border-color: rgba(34, 197, 94, 0.4);
}

/* Question Section */
.mcb-survey-question {
    display: none;
}

.mcb-survey-question.active {
    display: block;
    animation: mcbTabFadeIn 0.3s ease;
}

.mcb-survey-question h3 {
    font-family: 'Inter', sans-serif !important;
    font-size: 15px;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mcb-survey-question > p {
    font-size: 13px;
    color: rgb(107, 114, 128);
    margin-bottom: 16px;
}

/* Chip Grid */
.mcb-survey-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mcb-survey-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgb(156, 163, 175);
    font-family: 'Inter', sans-serif !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.mcb-survey-chip:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
}

.mcb-survey-chip.selected {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.35);
    color: #c4b5fd;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

.mcb-survey-chip .chip-icon {
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mcb-survey-chip .chip-check {
    display: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #7c3aed;
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-left: auto;
}

.mcb-survey-chip.selected .chip-check {
    display: flex;
}

/* Actions */
.mcb-survey-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.mcb-survey-btn-next,
.mcb-survey-btn-done {
    flex: 1;
    padding: 14px 20px;
    border-radius: 14px;
    border: none;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mcb-survey-btn-next {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
}

.mcb-survey-btn-next:hover {
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.35);
    transform: translateY(-1px);
}

.mcb-survey-btn-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mcb-survey-btn-done {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.mcb-survey-btn-done:hover {
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.mcb-survey-btn-back {
    padding: 14px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: rgb(156, 163, 175);
    font-family: 'Inter', sans-serif !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mcb-survey-btn-back:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.mcb-survey-skip {
    text-align: center;
    margin-top: 16px;
}

.mcb-survey-skip-btn {
    background: none;
    border: none;
    color: rgb(107, 114, 128);
    font-family: 'Inter', sans-serif !important;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 16px;
    transition: color 0.2s;
}

.mcb-survey-skip-btn:hover {
    color: rgb(156, 163, 175);
}

/* Profile Survey Card */
.mcb-survey-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.mcb-survey-card-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    font-size: 12px;
    font-weight: 600;
}

.mcb-survey-card-chip .chip-icon {
    font-size: 14px;
}

.mcb-survey-card-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgb(107, 114, 128);
    margin-bottom: 8px;
    margin-top: 14px;
}

.mcb-survey-card-label:first-child {
    margin-top: 0;
}

.mcb-survey-card-empty {
    font-size: 13px;
    color: rgb(107, 114, 128);
    padding: 16px 0;
    text-align: center;
}

.mcb-survey-edit-btn {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: rgb(156, 163, 175);
    font-family: 'Inter', sans-serif !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}

.mcb-survey-edit-btn:hover {
    background: rgba(139, 92, 246, 0.06);
    border-color: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}


@media (max-width: 900px) {
    .mcb-membership-grid {
        grid-template-columns: 1fr;
    }

    .mcb-payment-card {
        position: static;
    }

    .mcb-benefits-grid {
        grid-template-columns: 1fr;
    }

    .mcb-login-card {
        padding: 32px 24px;
    }

    .mcb-login-tab {
        font-size: 12px;
        padding: 10px 6px;
        gap: 4px;
    }

    .mcb-otp-input {
        width: 42px;
        height: 50px;
        font-size: 20px;
    }

    .mcb-otp-group {
        gap: 8px;
    }

    .mcb-magic-resend {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .gf-benefits-grid {
        grid-template-columns: 1fr;
    }

    .gf-hero-title {
        font-size: 36px !important;
    }

    .gf-pricing-card {
        padding: 32px 24px;
    }

    .gf-faq-list {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   GOOGLE FAMILY ULTRA PAGE
   =================================== */

.gf-hero {
    position: relative;
    text-align: center;
    padding: 100px 24px 60px;
    overflow: hidden;
}

.gf-hero-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(66, 133, 244, 0.15) 0%, rgba(52, 168, 83, 0.08) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.gf-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.gf-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 9999px;
    background: rgba(52, 168, 83, 0.1);
    border: 1px solid rgba(52, 168, 83, 0.3);
    color: #34d399;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 28px;
}

.gf-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    animation: gfPulse 2s infinite;
}

@keyframes gfPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.gf-hero-title {
    font-family: 'Inter', sans-serif !important;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.gf-hero-highlight {
    display: block;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 40%, #fbbc05 70%, #ea4335 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gf-hero-subtitle {
    color: rgb(156, 163, 175);
    font-size: 16px;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

.gf-hero-subtitle strong {
    color: #fff;
}

/* Section */
.gf-section {
    padding: 80px 24px;
}

.gf-container {
    max-width: 1100px;
    margin: 0 auto;
}

.gf-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.gf-section-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(66, 133, 244, 0.08);
    border: 1px solid rgba(66, 133, 244, 0.2);
    color: #60a5fa;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.gf-section-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.gf-section-sub {
    color: rgb(107, 114, 128);
    font-size: 15px;
}

/* Benefits Grid */
.gf-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gf-benefit-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.gf-benefit-card:hover {
    border-color: rgba(66, 133, 244, 0.25);
    background: rgba(66, 133, 244, 0.04);
    transform: translateY(-4px);
}

.gf-benefit-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.gf-benefit-card h3 {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.gf-benefit-card p {
    color: rgb(107, 114, 128);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* Pricing Section */
.gf-pricing-section {
    padding: 0 24px 80px;
}

.gf-pricing-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 48px 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(66, 133, 244, 0.2);
    border-radius: 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gf-pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4285f4, #34a853, #fbbc05, #ea4335);
}

.gf-pricing-header {
    margin-bottom: 28px;
}

.gf-pricing-badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 9999px;
    background: rgba(250, 204, 21, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.3);
    color: #facc15;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.gf-pricing-header h3 {
    font-family: 'Inter', sans-serif !important;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.gf-pricing-desc {
    color: rgb(107, 114, 128);
    font-size: 14px;
    margin: 0;
}

.gf-pricing-amount {
    margin-bottom: 8px;
}

.gf-price-value {
    font-family: 'Inter', sans-serif !important;
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
}

.gf-price-unit {
    font-size: 16px;
    color: rgb(107, 114, 128);
    font-weight: 500;
}

.gf-pricing-original {
    color: rgb(107, 114, 128);
    font-size: 13px;
    margin-bottom: 28px;
}

.gf-pricing-original s {
    color: rgb(156, 163, 175);
}

.gf-pricing-original strong {
    color: #34d399;
}

.gf-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    text-align: left;
}

.gf-pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: rgb(209, 213, 219);
    font-size: 14px;
    font-weight: 500;
}

.gf-pricing-features li:last-child {
    border-bottom: none;
}

.gf-buy-btn {
    display: block;
    width: 100%;
    padding: 20px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: #fff;
    font-family: 'Inter', sans-serif !important;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(66, 133, 244, 0.3);
}

.gf-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(66, 133, 244, 0.4);
}

.gf-buy-btn:active {
    transform: translateY(0);
}

.gf-buy-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.gf-pricing-note {
    color: rgb(75, 85, 99);
    font-size: 12px;
    margin-top: 16px;
}

/* FAQ */
.gf-faq-section {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.gf-faq-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gf-faq-item {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

.gf-faq-item h4 {
    font-family: 'Inter', sans-serif !important;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.gf-faq-item p {
    color: rgb(107, 114, 128);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   LEGAL PAGES (Privacy & Terms)
   =================================== */

.mcb-legal-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 80px 24px 60px;
}

.mcb-legal-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    padding: 48px 40px;
}

.mcb-legal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mcb-legal-header h1 {
    font-family: 'Inter', sans-serif !important;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.mcb-legal-update {
    color: rgb(107, 114, 128);
    font-size: 13px;
    font-weight: 500;
}

.mcb-legal-intro {
    padding: 20px 24px;
    background: rgba(124, 92, 255, 0.06);
    border: 1px solid rgba(124, 92, 255, 0.15);
    border-radius: 16px;
    margin-bottom: 32px;
}

.mcb-legal-intro p {
    color: rgb(209, 213, 219);
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 8px;
}

.mcb-legal-intro p:last-child {
    margin-bottom: 0;
}

.mcb-legal-content h2 {
    font-family: 'Inter', sans-serif !important;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 36px 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mcb-legal-content h3 {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 20px 0 12px;
}

.mcb-legal-content p {
    color: rgb(156, 163, 175);
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 12px;
}

.mcb-legal-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.mcb-legal-content ul li {
    color: rgb(156, 163, 175);
    font-size: 14px;
    line-height: 1.6;
    padding: 8px 0 8px 20px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mcb-legal-content ul li:last-child {
    border-bottom: none;
}

.mcb-legal-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #8b5cf6;
    font-weight: 700;
}

.mcb-legal-content a {
    color: #a78bfa !important;
    text-decoration: none !important;
    font-weight: 500;
}

.mcb-legal-content a:hover {
    color: #c4b5fd !important;
    text-decoration: underline !important;
}

.mcb-legal-highlight {
    padding: 20px 24px;
    background: rgba(250, 204, 21, 0.06);
    border: 1px solid rgba(250, 204, 21, 0.15);
    border-left: 3px solid #facc15;
    border-radius: 12px;
    margin: 24px 0;
    color: rgb(209, 213, 219);
    font-size: 14px;
    line-height: 1.7;
}

.mcb-legal-danger {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.15);
    border-left-color: #ef4444;
}

.mcb-legal-contact {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    margin: 16px 0;
}

.mcb-legal-contact p {
    margin: 6px 0;
}

@media (max-width: 640px) {
    .mcb-legal-page {
        padding: 40px 16px 40px;
    }

    .mcb-legal-container {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .mcb-legal-header h1 {
        font-size: 24px;
    }

    .mcb-legal-content h2 {
        font-size: 18px;
    }
}

/* ===================================
   KHÓA HỌC LISTING PAGE
   =================================== */

.kh-listing {
    padding-bottom: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Hero */
.kh-hero {
    text-align: center;
    padding: 80px 24px 48px;
    position: relative;
    overflow: hidden;
}

.kh-hero-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.kh-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #a78bfa;
    text-transform: uppercase;
    background: rgba(139, 92, 246, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.kh-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a78bfa;
    animation: kh-pulse 2s infinite;
}

@keyframes kh-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.kh-hero-title {
    font-size: 36px;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1.2;
    margin-bottom: 16px;
}

.kh-gradient {
    background: linear-gradient(135deg, #a78bfa, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kh-hero-sub {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Stats */
.kh-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 32px;
}

.kh-stat {
    text-align: center;
}

.kh-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #f1f5f9;
}

.kh-stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* Courses Section */
.kh-courses {
    padding: 0 24px;
}

.kh-courses-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.kh-courses-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

/* Course Grid */
.kh-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Course Card */
.kh-card {
    display: flex;
    flex-direction: column;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.3s;
}

.kh-card:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.kh-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.kh-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    color: #a78bfa;
    flex-shrink: 0;
}

.kh-card-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kh-tag-hot {
    background: #ef4444;
    color: #fff;
}

.kh-tag-new {
    background: #10b981;
    color: #fff;
}

.kh-tag-sale {
    background: #f59e0b;
    color: #fff;
}

.kh-card-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 600;
    color: #fbbf24;
    margin-left: auto;
}

.kh-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 8px;
}

.kh-card-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
    flex: 1;
    margin: 0 0 16px;
}

.kh-card-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #64748b;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.kh-card-footer span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.kh-card-trial {
    color: #10b981 !important;
    font-weight: 600;
}

/* Loading & Empty */
.kh-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 0;
    color: #64748b;
}

.kh-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 0;
    color: #64748b;
    text-align: center;
}

.kh-empty h3 {
    color: #94a3b8;
}

/* Why Section */
.kh-why {
    padding: 60px 24px;
    text-align: center;
}

.kh-why-title {
    font-size: 24px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 32px;
}

.kh-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    text-align: left;
}

.kh-why-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.06);
    border-radius: 14px;
    padding: 24px;
}

.kh-why-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.kh-why-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 8px;
}

.kh-why-card p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 640px) {
    .kh-hero-title {
        font-size: 26px;
    }

    .kh-hero-stats {
        gap: 24px;
    }

    .kh-stat-num {
        font-size: 22px;
    }

    .kh-courses-grid {
        grid-template-columns: 1fr;
    }

    .kh-why-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   PROMPT LIBRARY PAGE
   =================================== */
.pl-page {
    padding-bottom: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.pl-search-wrap {
    position: relative;
    max-width: 480px;
    margin: 28px auto 0;
}

.pl-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.pl-search {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    color: #f1f5f9;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.pl-search:focus {
    border-color: rgba(139, 92, 246, 0.4);
}

.pl-search::placeholder {
    color: #64748b;
}

.pl-filters {
    display: flex;
    gap: 8px;
    padding: 24px 24px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.pl-filter {
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.08);
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pl-filter:hover {
    background: rgba(30, 41, 59, 0.8);
    color: #f1f5f9;
}

.pl-filter.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

.pl-count {
    text-align: center;
    padding: 12px 0 4px;
    font-size: 12px;
    color: #64748b;
}

.pl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    padding: 16px 24px;
}

.pl-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 14px;
    padding: 20px;
    transition: border-color 0.2s;
}

.pl-card:hover {
    border-color: rgba(148, 163, 184, 0.15);
}

.pl-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.pl-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.pl-model {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.pl-model-gpt4o {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.pl-model-claude {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
}

.pl-model-gemini {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.pl-model-midjourney {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
}

.pl-card-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0 0 14px;
}

.pl-card-prompt {
    margin-bottom: 14px;
}

.pl-prompt-text {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 10px;
    padding: 16px;
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 300px;
    overflow-y: auto;
    margin: 0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.pl-card-actions {
    display: flex;
    gap: 8px;
}

.pl-btn-expand,
.pl-btn-copy {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.pl-btn-expand {
    background: rgba(30, 41, 59, 0.5);
    color: #94a3b8;
}

.pl-btn-expand:hover {
    background: rgba(30, 41, 59, 0.8);
    color: #f1f5f9;
}

.pl-btn-copy {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border-color: rgba(139, 92, 246, 0.2);
}

.pl-btn-copy:hover {
    background: rgba(139, 92, 246, 0.2);
}

.pl-copied {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.pl-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 0;
    color: #64748b;
    text-align: center;
    grid-column: 1 / -1;
}

@media (max-width: 640px) {
    .pl-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .pl-filters {
        padding: 24px 16px 0;
    }
}

/* ===================================
   VIBE CODING PAGE
   =================================== */
.vc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    padding: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.vc-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s;
}

.vc-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateY(-2px);
}

.vc-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.vc-stars {
    font-size: 12px;
    color: #fbbf24;
    font-weight: 600;
}

.vc-tech-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.vc-tech {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
}

.vc-card-actions {
    display: flex;
    gap: 8px;
}

.vc-btn-github,
.vc-btn-docs {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.vc-btn-github {
    background: rgba(30, 41, 59, 0.8);
    color: #f1f5f9;
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.vc-btn-github:hover {
    background: rgba(30, 41, 59, 1);
    border-color: rgba(148, 163, 184, 0.25);
}

.vc-btn-docs {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.vc-btn-docs:hover {
    background: rgba(59, 130, 246, 0.2);
}

.vc-howto {
    padding: 40px 24px 0;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .vc-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   BLOG / AI NEWS PAGE
   =================================== */
.bn-page {
    padding-bottom: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.bn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 24px;
}

.bn-card {
    display: flex;
    flex-direction: column;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
}

.bn-card:hover {
    border-color: rgba(139, 92, 246, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.bn-card-img {
    position: relative;
    height: 180px;
    background: rgba(15, 23, 42, 0.5);
    overflow: hidden;
}

.bn-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bn-card-emoji {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
}

.bn-featured .bn-card-img {
    height: 240px;
}

.bn-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bn-card-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #a78bfa;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.bn-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 8px;
    line-height: 1.4;
}

.bn-card-excerpt {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
    flex: 1;
    margin: 0 0 12px;
}

.bn-card-meta {
    font-size: 11px;
    color: #64748b;
    display: flex;
    gap: 12px;
}

.bn-loadmore-wrap {
    display: flex;
    justify-content: center;
    padding: 16px 0;
}

.bn-loadmore {
    padding: 10px 28px;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.bn-loadmore:hover {
    background: rgba(139, 92, 246, 0.2);
}

.bn-newsletter {
    padding: 60px 24px 0;
}

.bn-newsletter-inner {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 16px;
    padding: 40px 32px;
}

.bn-newsletter-inner h2 {
    font-size: 22px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 8px;
}

.bn-newsletter-inner p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 20px;
}

.bn-newsletter-form {
    display: flex;
    gap: 8px;
}

.bn-newsletter-form input {
    flex: 1;
    padding: 10px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 14px;
    outline: none;
}

.bn-newsletter-form input:focus {
    border-color: rgba(139, 92, 246, 0.3);
}

.bn-newsletter-form button {
    padding: 10px 20px;
    background: #8b5cf6;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.bn-newsletter-form button:hover {
    background: #7c3aed;
}

.bn-cat {
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.08);
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.bn-cat:hover {
    background: rgba(30, 41, 59, 0.8);
    color: #f1f5f9;
}

.bn-cat.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

@media (max-width: 640px) {
    .bn-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .bn-newsletter-form {
        flex-direction: column;
    }
}

/* ===================================
   STATIC CONTENT PAGES
   =================================== */
.mcb-static-page {
    padding: 60px 24px 80px;
    max-width: 760px;
    margin: 0 auto;
}

.mcb-static-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 9999px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.mcb-static-title {
    font-family: 'Inter', sans-serif !important;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.mcb-static-subtitle {
    color: rgb(156, 163, 175);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.mcb-static-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 20px;
}

.mcb-static-card h2 {
    font-family: 'Inter', sans-serif !important;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.mcb-static-card p {
    color: rgb(156, 163, 175);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.mcb-static-card a {
    color: #a78bfa !important;
    text-decoration: none !important;
}

.mcb-static-card a:hover {
    color: #c4b5fd !important;
}

/* Steps */
.mcb-steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mcb-step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.mcb-step-number {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(124, 92, 255, 0.15);
    color: #a78bfa;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mcb-step-content h3 {
    font-family: 'Inter', sans-serif !important;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.mcb-step-content p {
    margin: 0;
    font-size: 13px;
}

/* Check/Delete list */
.mcb-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mcb-check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgb(209, 213, 219);
    font-size: 14px;
}

.mcb-delete-list li {
    color: #f87171;
}

/* Contact box */
.mcb-contact-box {
    padding: 20px;
    background: rgba(124, 92, 255, 0.06);
    border: 1px solid rgba(124, 92, 255, 0.15);
    border-radius: 14px;
}

.mcb-contact-box p {
    margin-bottom: 6px;
    font-size: 13px;
}

.mcb-contact-box p:last-child {
    margin-bottom: 0;
}

/* Footer */
.mcb-static-footer {
    text-align: center;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.mcb-static-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 14px;
    background: #8b5cf6;
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.mcb-static-btn:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

.mcb-static-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgb(107, 114, 128) !important;
    font-size: 13px;
    text-decoration: none !important;
}

.mcb-static-link:hover {
    color: #a78bfa !important;
}

@media (max-width: 640px) {
    .mcb-static-page {
        padding: 40px 16px 60px;
    }

    .mcb-static-card {
        padding: 24px 20px;
    }
}

/* ===================================
   SESSION SHARE PAGE
   =================================== */
.mcb-session-share {
    padding: 48px 24px 80px;
    max-width: 860px;
    margin: 0 auto;
}

.mcb-session-hero {
    margin-bottom: 32px;
}

.mcb-session-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 9999px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.mcb-session-title {
    font-family: 'Inter', sans-serif !important;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.mcb-session-subtitle {
    color: rgb(156, 163, 175);
    font-size: 14px;
    line-height: 1.7;
}

.mcb-session-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 16px;
}

.mcb-session-card h2 {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.mcb-session-gate {
    text-align: center;
    padding: 60px 28px;
}

.mcb-session-gate h2 {
    justify-content: center;
}

.mcb-session-gate p {
    color: rgb(156, 163, 175);
    font-size: 14px;
}

/* Steps */
.mcb-session-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mcb-session-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.mcb-session-step-num {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mcb-session-step strong {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px;
    color: #fff;
}

.mcb-session-step p {
    font-size: 12px;
    color: rgb(156, 163, 175);
    margin: 2px 0 0;
}

/* Download cards */
.mcb-session-downloads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.mcb-session-dl-card {
    text-align: center;
    padding: 32px 24px;
}

.mcb-session-dl-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.mcb-session-dl-card h3 {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.mcb-session-dl-card p {
    font-size: 12px;
    color: rgb(156, 163, 175);
    margin-bottom: 16px;
}

.mcb-session-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
}

.mcb-session-dl-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Session list */
.mcb-session-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mcb-session-list-header h2 {
    margin-bottom: 0;
}

.mcb-session-refresh-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.mcb-session-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.mcb-session-loading,
.mcb-session-empty {
    text-align: center;
    padding: 40px 0;
    color: #6b7280;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mcb-session-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mcb-session-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px 20px;
}

.mcb-session-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mcb-session-item-info {
    display: flex;
    flex-direction: column;
}

.mcb-session-item-info strong {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px;
    color: #fff;
}

.mcb-session-item-info span {
    font-size: 12px;
    color: #6b7280;
}

.mcb-session-status {
    font-family: 'Inter', sans-serif !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mcb-session-item-meta {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 10px;
}

.mcb-session-item-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mcb-session-item-actions {
    display: flex;
    gap: 8px;
}

.mcb-session-copy-btn,
.mcb-session-delete-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.mcb-session-copy-btn {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
}

.mcb-session-copy-btn:hover {
    background: rgba(139, 92, 246, 0.2);
}

.mcb-session-delete-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.mcb-session-delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Warning */
.mcb-session-warning {
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.03);
}

.mcb-session-warning h2 {
    color: #fbbf24;
}

.mcb-session-warning ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mcb-session-warning li {
    font-size: 13px;
    color: rgb(209, 213, 219);
    padding-left: 20px;
    position: relative;
}

.mcb-session-warning li::before {
    content: '⚠';
    position: absolute;
    left: 0;
}

@media (max-width: 640px) {
    .mcb-session-share {
        padding: 32px 16px 60px;
    }

    .mcb-session-downloads {
        grid-template-columns: 1fr;
    }

    .mcb-session-item-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* ===================================
   NOTIFICATION BELL
   =================================== */
.kgai-notif-bell {
    position: relative;
    margin-right: 8px;
}

.kgai-notif-trigger {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    position: relative;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.kgai-notif-trigger:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.kgai-notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    font-family: 'Inter', sans-serif !important;
}

.kgai-notif-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 340px;
    max-height: 420px;
    background: #1a1b2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    z-index: 1000;
    margin-top: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.kgai-notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.kgai-notif-header strong {
    font-size: 13px;
    color: #fff;
}

.kgai-notif-read-all {
    background: none;
    border: none;
    color: #8b5cf6;
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
}

.kgai-notif-read-all:hover {
    color: #a78bfa;
}

.kgai-notif-list {
    overflow-y: auto;
    max-height: 360px;
}

.kgai-notif-empty {
    padding: 32px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

.kgai-notif-item {
    display: block;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    text-decoration: none !important;
    transition: background 0.15s;
}

.kgai-notif-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.kgai-notif-item.unread {
    background: rgba(139, 92, 246, 0.06);
    border-left: 3px solid #8b5cf6;
}

.kgai-notif-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.kgai-notif-item-msg {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.4;
}

.kgai-notif-item-time {
    font-size: 10px;
    color: #6b7280;
    margin-top: 4px;
}

/* ===================================
   NOTES PAGE
   =================================== */
.mcb-notes-page {
    padding: 32px 24px 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.mcb-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.mcb-notes-title {
    font-family: 'Inter', sans-serif !important;
    font-size: clamp(22px, 3.5vw, 30px);
    font-weight: 900;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.mcb-notes-subtitle {
    color: #9ca3af;
    font-size: 13px;
}

.mcb-notes-add-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 14px;
    background: #8b5cf6;
    color: #fff;
    border: none;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.mcb-notes-add-btn:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

/* Toolbar */
.mcb-notes-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.mcb-notes-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 16px;
    flex: 1;
    min-width: 200px;
    max-width: 360px;
    color: #6b7280;
}

.mcb-notes-search-wrap input {
    background: none;
    border: none;
    color: #fff;
    font-size: 13px;
    outline: none;
    width: 100%;
}

.mcb-notes-search-wrap input::placeholder {
    color: #4b5563;
}

.mcb-notes-filters {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.mcb-notes-filter {
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #9ca3af;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.mcb-notes-filter:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mcb-notes-filter.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

.mcb-notes-loading,
.mcb-notes-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mcb-notes-empty span {
    font-size: 12px;
    color: #4b5563;
}

/* Notes Grid */
.mcb-notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.mcb-note-card {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 18px 20px;
    position: relative;
    transition: all 0.2s;
}

.mcb-note-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.mcb-note-card-pin {
    position: absolute;
    top: 10px;
    right: 12px;
    color: #a78bfa;
    opacity: 0.7;
}

.mcb-note-card-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
}

.mcb-note-card-text {
    font-size: 12px;
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 12px;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mcb-note-card-reminder {
    font-size: 11px;
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.1);
    padding: 5px 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: inline-block;
}

.mcb-note-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
}

.mcb-note-card-foot>span {
    font-size: 10px;
    color: #6b7280;
}

.mcb-note-card-actions {
    display: flex;
    gap: 4px;
}

.mcb-note-card-actions button {
    background: rgba(255, 255, 255, 0.04);
    border: none;
    color: #9ca3af;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.mcb-note-card-actions button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Modal */
.mcb-note-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-top: 0;
}

.kgai-user-area {
    display: flex;
}

.mcb-note-modal {
    background: #1a1b2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    overflow: hidden;
}

.mcb-note-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mcb-note-modal-header h2 {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.mcb-note-modal-close {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.mcb-note-modal-close:hover {
    color: #fff;
}

.mcb-note-modal-body {
    padding: 24px;
}

.mcb-note-field {
    margin-bottom: 16px;
}

.mcb-note-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mcb-note-field input[type="text"],
.mcb-note-field input[type="datetime-local"],
.mcb-note-field textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    font-size: 13px;
    outline: none;
    font-family: inherit;
    resize: vertical;
    transition: border 0.2s;
    box-sizing: border-box;
}

.mcb-note-field input:focus,
.mcb-note-field textarea:focus {
    border-color: #8b5cf6;
}

.mcb-note-field-row {
    display: flex;
    gap: 16px;
}

.mcb-note-colors {
    display: flex;
    gap: 6px;
}

.mcb-note-color {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
}

.mcb-note-color:hover {
    transform: scale(1.15);
}

.mcb-note-color.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.5);
}

.mcb-note-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #d1d5db;
}

.mcb-note-checkbox input {
    accent-color: #8b5cf6;
}

.mcb-note-checkbox span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mcb-note-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mcb-note-cancel-btn {
    padding: 10px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.mcb-note-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.mcb-note-save-btn {
    padding: 10px 24px;
    border-radius: 12px;
    background: #8b5cf6;
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.mcb-note-save-btn:hover {
    background: #7c3aed;
}

@media (max-width: 640px) {
    .mcb-notes-page {
        padding: 20px 12px 60px;
    }

    .mcb-notes-grid {
        grid-template-columns: 1fr;
    }

    .mcb-notes-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .mcb-note-field-row {
        flex-direction: column;
        gap: 0;
    }

    .mcb-note-modal {
        margin: 12px;
    }
}

/* ===================================
   POINTS PAGE
   =================================== */

.mcb-points-page {
    padding: 40px 24px;
    max-width: 900px;
    margin: 0 auto;
}

.mcb-points-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mcb-points-hero {
    text-align: center;
    padding: 40px 0 20px;
}

.mcb-points-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 15px;
}

.mcb-points-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.mcb-points-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.mcb-points-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f8fafc;
}

.mcb-points-stat-label {
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
    font-weight: 600;
}

.mcb-points-balance-card {
    border-color: rgba(234, 179, 8, 0.2);
    background: rgba(234, 179, 8, 0.04);
}

.mcb-points-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mcb-points-checkin-card,
.mcb-points-redeem-card {
    min-height: 280px;
}

.mcb-points-streak-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.mcb-points-streak-fill {
    height: 100%;
    background: linear-gradient(90deg, #eab308, #f59e0b, #22c55e);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.mcb-points-streak-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #6b7280;
    margin-bottom: 20px;
}

.mcb-points-checkin-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eab308, #f59e0b);
    color: #000;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.mcb-points-checkin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.3);
}

.mcb-points-checkin-btn:disabled,
.mcb-points-checked {
    opacity: 0.7;
    cursor: default;
    background: rgba(34, 197, 94, 0.2) !important;
    color: #22c55e !important;
}

.mcb-points-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    box-sizing: border-box;
}

.mcb-points-input:focus {
    border-color: #8b5cf6;
}

.mcb-points-redeem-preview {
    padding: 12px 16px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.mcb-points-redeem-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.mcb-points-redeem-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

/* Missions */
.mcb-points-mission {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    gap: 16px;
}

.mcb-points-mission:last-child {
    border-bottom: none;
}

.mcb-points-mission-info {
    flex: 1;
}

.mcb-points-mission-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mcb-points-mission-top strong {
    color: #f8fafc;
    font-size: 14px;
}

.mcb-points-mission-type {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mcb-points-mission-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.mcb-points-mission-pts {
    color: #eab308;
    font-weight: 800;
    font-size: 16px;
}

.mcb-points-mission-btn {
    padding: 8px 18px;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.mcb-points-mission-btn:hover:not(:disabled) {
    background: rgba(34, 197, 94, 0.25);
}

/* History */
.mcb-points-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mcb-points-history-item:last-child {
    border-bottom: none;
}

.mcb-points-history-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mcb-points-history-type {
    font-size: 12px;
    font-weight: 600;
    color: #d1d5db;
}

.mcb-points-history-desc {
    font-size: 11px;
    color: #6b7280;
}

.mcb-points-history-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mcb-points-history-date {
    font-size: 10px;
    color: #6b7280;
}

/* ===================================
   AFFILIATE PAGE
   =================================== */

.mcb-aff-page {
    padding: 40px 24px;
    max-width: 960px;
    margin: 0 auto;
}

.mcb-aff-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mcb-aff-hero {
    text-align: center;
    padding: 40px 0 20px;
}

.mcb-aff-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 15px;
}

.mcb-aff-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.mcb-aff-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.mcb-aff-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f8fafc;
}

.mcb-aff-stat-label {
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
    font-weight: 600;
}

.mcb-aff-link-card {
    border-color: rgba(34, 197, 94, 0.2);
    background: rgba(34, 197, 94, 0.04);
}

.mcb-aff-link-box {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.mcb-aff-link-input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #22c55e;
    font-size: 13px;
    font-family: monospace;
}

.mcb-aff-copy-btn {
    padding: 12px 20px;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.mcb-aff-copy-btn:hover {
    background: rgba(34, 197, 94, 0.25);
}

.mcb-aff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.mcb-aff-table th {
    text-align: left;
    padding: 10px 12px;
    color: #6b7280;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mcb-aff-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #d1d5db;
}

.mcb-aff-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.mcb-aff-register-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.mcb-aff-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

/* Responsive */
@media (max-width: 768px) {

    .mcb-points-stats,
    .mcb-aff-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .mcb-points-action-row {
        grid-template-columns: 1fr;
    }

    .mcb-aff-link-box {
        flex-direction: column;
    }
}

.kgai-notif-dropdown {
    width: 300px;
    right: -40px;
}

/* ===========================================
   TOAST NOTIFICATIONS
   =========================================== */
.kgai-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.kgai-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 300px;
    max-width: 420px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(20, 24, 44, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    animation: kgaiToastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.kgai-toast.hiding {
    animation: kgaiToastOut 0.3s ease forwards;
}

.kgai-toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.kgai-toast-body {
    flex: 1;
    min-width: 0;
}

.kgai-toast-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 2px;
}

.kgai-toast-msg {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12.5px;
    word-break: break-word;
}

.kgai-toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    transition: color 0.15s;
    margin-top: -2px;
}

.kgai-toast-close:hover {
    color: #fff;
}

.kgai-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 0 0 12px 12px;
    animation: kgaiToastProgress 3s linear forwards;
}

/* Types */
.kgai-toast.success {
    border-left: 3px solid #10b981;
}

.kgai-toast.success .kgai-toast-icon {
    color: #10b981;
}

.kgai-toast.success .kgai-toast-progress {
    background: #10b981;
}

.kgai-toast.error {
    border-left: 3px solid #ef4444;
}

.kgai-toast.error .kgai-toast-icon {
    color: #ef4444;
}

.kgai-toast.error .kgai-toast-progress {
    background: #ef4444;
}

.kgai-toast.warning {
    border-left: 3px solid #f59e0b;
}

.kgai-toast.warning .kgai-toast-icon {
    color: #f59e0b;
}

.kgai-toast.warning .kgai-toast-progress {
    background: #f59e0b;
}

.kgai-toast.info {
    border-left: 3px solid #3b82f6;
}

.kgai-toast.info .kgai-toast-icon {
    color: #3b82f6;
}

.kgai-toast.info .kgai-toast-progress {
    background: #3b82f6;
}

@keyframes kgaiToastIn {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes kgaiToastOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
}

@keyframes kgaiToastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

@media (max-width: 480px) {
    .kgai-toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
    }

    .kgai-toast {
        min-width: auto;
        max-width: none;
    }
}

/* ===========================================
   CONFIRM DIALOG
   =========================================== */
.kgai-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: kgaiConfirmFadeIn 0.2s ease;
}

.kgai-confirm-overlay.hiding {
    animation: kgaiConfirmFadeOut 0.2s ease forwards;
}

.kgai-confirm-box {
    background: rgba(20, 24, 44, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.kgai-confirm-title {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.kgai-confirm-msg {
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 24px;
    white-space: pre-line;
}

.kgai-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.kgai-confirm-cancel,
.kgai-confirm-ok {
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kgai-confirm-cancel {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.kgai-confirm-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.kgai-confirm-ok {
    color: #fff;
}

.kgai-confirm-ok:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

@keyframes kgaiConfirmFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes kgaiConfirmFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* =============================================
   N8N LIBRARY PAGE
   ============================================= */

.n8nlib-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px;
}

.n8nlib-filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.n8nlib-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 250px;
    color: #9ca3af;
}

.n8nlib-search {
    background: transparent;
    border: none;
    outline: none;
    color: #e0e0e0;
    font-size: 14px;
    width: 100%;
}

.n8nlib-search::placeholder {
    color: #6b7280;
}

.n8nlib-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.n8nlib-filter-label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 600;
}

.n8nlib-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e0e0e0;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

.n8nlib-select:hover {
    border-color: rgba(234, 88, 12, 0.4);
}

.n8nlib-stats {
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 20px;
    padding: 0 4px;
}

.n8nlib-stats-sep {
    margin: 0 6px;
    color: #4b5563;
}

.n8nlib-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.n8nlib-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 60px 0;
    color: #9ca3af;
}

.n8nlib-empty {
    text-align: center;
    padding: 60px 0;
    color: #6b7280;
}

.n8nlib-empty h3 {
    color: #e0e0e0;
    margin: 12px 0 4px;
}

/* Cards */
.n8nlib-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.n8nlib-card:hover {
    border-color: rgba(234, 88, 12, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(234, 88, 12, 0.08);
}

.n8nlib-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.n8nlib-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1.4;
    margin: 0;
}

.n8nlib-rating-badge {
    background: rgba(234, 88, 12, 0.15);
    color: #ea580c;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.n8nlib-card-desc {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.n8nlib-card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.n8nlib-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.n8nlib-chip {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.n8nlib-chip-cat {
    background: rgba(234, 88, 12, 0.12);
    color: #ea580c;
    border: 1px solid rgba(234, 88, 12, 0.25);
}

.n8nlib-chip-tag {
    background: rgba(255, 255, 255, 0.06);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.n8nlib-chip-more {
    background: rgba(255, 255, 255, 0.04);
    color: #6b7280;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.n8nlib-lock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #eab308;
    font-weight: 600;
}

.n8nlib-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.n8nlib-btn-card-copy,
.n8nlib-btn-card-dl {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.n8nlib-btn-card-copy {
    background: rgba(234, 88, 12, 0.12);
    color: #ea580c;
    border: 1px solid rgba(234, 88, 12, 0.3);
}

.n8nlib-btn-card-copy:hover {
    background: rgba(234, 88, 12, 0.2);
}

.n8nlib-btn-card-dl {
    background: rgba(255, 255, 255, 0.05);
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.n8nlib-btn-card-dl:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Modal */
.n8nlib-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.n8nlib-modal {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
}

.n8nlib-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s;
}

.n8nlib-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.n8nlib-modal-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.n8nlib-modal-title-row h2 {
    font-size: 20px;
    font-weight: 800;
    color: #f0f0f0;
    margin: 0;
}

.n8nlib-modal-desc {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px;
}

.n8nlib-modal-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.n8nlib-modal-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.n8nlib-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

/* Tabs */
.n8nlib-modal-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.n8nlib-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    color: #9ca3af;
    transition: all 0.2s;
}

.n8nlib-tab:hover {
    background: rgba(255, 255, 255, 0.08);
}

.n8nlib-tab.active {
    background: rgba(234, 88, 12, 0.15);
    color: #ea580c;
    border-color: rgba(234, 88, 12, 0.3);
}

.n8nlib-tab-content {
    min-height: 200px;
}

.n8nlib-canvas-wrap {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    min-height: 350px;
    position: relative;
}

.n8nlib-canvas-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #9ca3af;
    padding: 60px 20px;
    justify-content: center;
}

#n8nCanvasContainer n8n-demo {
    width: 100%;
    min-height: 350px;
    display: block;
}

/* Fallback node visual display */
.n8nlib-fallback-nodes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 24px;
}

.n8nlib-fallback-node {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(234, 88, 12, 0.08);
    border: 1px solid rgba(234, 88, 12, 0.2);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #f0f0f0;
    transition: all 0.2s;
}

.n8nlib-fallback-node:hover {
    background: rgba(234, 88, 12, 0.15);
    transform: translateY(-1px);
}

.n8nlib-fallback-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ea580c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

.n8nlib-fallback-arrow {
    color: #6b7280;
    display: flex;
    align-items: center;
}

.n8nlib-json-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    padding: 40px;
    justify-content: center;
}

.n8nlib-json-code {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #a5b4fc;
    overflow-x: auto;
    max-height: 400px;
    white-space: pre;
    margin: 0;
}

.n8nlib-howto {
    background: rgba(234, 88, 12, 0.06);
    border: 1px solid rgba(234, 88, 12, 0.15);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
}

.n8nlib-howto h4 {
    color: #ea580c;
    font-size: 14px;
    margin: 0 0 10px;
}

.n8nlib-howto ol {
    margin: 0;
    padding-left: 18px;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.8;
}

.n8nlib-modal-actions {
    display: flex;
    gap: 12px;
}

.n8nlib-btn-copy,
.n8nlib-btn-download {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.n8nlib-btn-copy {
    background: #ea580c;
    color: #fff;
    flex: 1;
    justify-content: center;
}

.n8nlib-btn-copy:hover {
    background: #dc4e0a;
}

.n8nlib-btn-download {
    background: rgba(255, 255, 255, 0.06);
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
    justify-content: center;
}

.n8nlib-btn-download:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 900px) {
    .n8nlib-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .n8nlib-grid {
        grid-template-columns: 1fr;
    }

    .n8nlib-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .n8nlib-filter-group {
        flex-wrap: wrap;
    }

    .n8nlib-modal {
        padding: 20px;
        border-radius: 16px;
    }

    .n8nlib-modal-actions {
        flex-direction: column;
    }
}

/* =============================================
   AI VIDEO GENERATOR
   ============================================= */

/* =============================================
   AI VIDEO STUDIO — Multi-mode UI
   ============================================= */

.vidai-hero {
    text-align: center;
    padding: 40px 20px 32px;
    position: relative;
}

.vidai-hero-glow {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* VIP Gate */
.vidai-vip-gate {
    text-align: center;
    padding: 60px 20px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 20px;
    margin: 20px 0;
    justify-content: center;
}

.vidai-lock-icon {
    color: #8b5cf6;
    margin-bottom: 16px;
}

.vidai-vip-gate h2 {
    color: #f0f0f0;
    font-size: 22px;
    margin: 0 0 8px;
}

.vidai-vip-gate p {
    color: #9ca3af;
    margin: 0 0 20px;
}

.vidai-upgrade-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
}

.vidai-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

/* Generator */
.vidai-generator {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
}

.vidai-gen-left {
    flex: 1;
    min-width: 0;
}

.vidai-gen-right {
    width: 280px;
    flex-shrink: 0;
}

.vidai-label {
    display: block;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.vidai-prompt {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e0e0e0;
    font-size: 14px;
    padding: 14px;
    resize: vertical;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.vidai-prompt:focus {
    border-color: rgba(139, 92, 246, 0.5);
}

.vidai-prompt::placeholder {
    color: #4b5563;
}

.vidai-prompt-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

.vidai-quota {
    color: #8b5cf6;
}

/* Model selector */
.vidai-models {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vidai-model-btn {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    color: #d1d5db;
    transition: all 0.2s;
}

.vidai-model-btn:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.vidai-model-btn.active {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.4);
}

.vidai-model-btn strong {
    font-size: 13px;
    color: #f0f0f0;
}

.vidai-model-cost {
    font-size: 11px;
    color: #8b5cf6;
    font-weight: 600;
}

.vidai-model-desc {
    font-size: 11px;
    color: #6b7280;
}

/* Ratio */
.vidai-ratio-group {
    display: flex;
    gap: 6px;
}

.vidai-ratio {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.vidai-ratio.active {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.4);
    color: #8b5cf6;
}

/* Generate button */
.vidai-generate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    margin-top: 16px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.vidai-generate-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.vidai-generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sections */
.vidai-section {
    margin-bottom: 24px;
}

.vidai-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e0e0e0;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
}

/* Active jobs */
.vidai-active-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vidai-active-card {
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 14px;
    padding: 16px;
}

.vidai-active-prompt {
    color: #d1d5db;
    font-size: 13px;
    margin: 0 0 10px;
}

.vidai-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.vidai-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    border-radius: 3px;
    width: 5%;
    transition: width 0.5s ease;
    animation: vidaiPulse 2s ease-in-out infinite;
}

@keyframes vidaiPulse {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

.vidai-active-status {
    font-size: 12px;
    color: #8b5cf6;
    font-weight: 600;
}

/* Gallery */
.vidai-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.vidai-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px;
    color: #9ca3af;
}

.vidai-empty {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.vidai-empty p {
    margin: 10px 0 0;
}

/* Video Card */
.vidai-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s;
}

.vidai-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.vidai-card-video {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    cursor: pointer;
}

.vidai-card-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vidai-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    color: #fff;
    transition: opacity 0.3s;
}

.vidai-play-btn:hover {
    background: rgba(0, 0, 0, 0.4);
}

.vidai-card-info {
    padding: 14px;
}

.vidai-card-prompt {
    font-size: 13px;
    color: #d1d5db;
    margin: 0 0 8px;
    line-height: 1.4;
}

.vidai-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 10px;
}

.vidai-model-tag {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.vidai-card-actions {
    display: flex;
    gap: 6px;
}

.vidai-card-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #d1d5db;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.vidai-card-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.vidai-card-del:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

/* =============================================
   AI STUDIO — Tabs
   ============================================= */

.vidai-app {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.vidai-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.vidai-tab {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}

.vidai-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #d1d5db;
}

.vidai-tab.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(59, 130, 246, 0.2));
    color: #fff;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.vidai-tab-icon {
    font-size: 18px;
}

.vidai-tab-label {
    font-size: 13px;
}

/* =============================================
   AI STUDIO — Panels
   ============================================= */

.vidai-panel {
    display: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
}

.vidai-panel.active {
    display: block;
}

.vidai-panel-header {
    margin-bottom: 20px;
}

.vidai-panel-header h2 {
    font-size: 20px;
    color: #f3f4f6;
    margin: 0 0 6px;
}

.vidai-panel-header p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.vidai-form-group {
    margin-bottom: 16px;
}

.vidai-form-group label {
    display: block;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 6px;
    font-weight: 500;
}

.vidai-required {
    color: #ef4444;
}

.vidai-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.vidai-veo3-opts {
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(139, 92, 246, 0.04);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 12px;
}

.vidai-form-row .vidai-form-group {
    flex: 1;
    margin-bottom: 0;
}

.vidai-ratio-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vidai-select {
    width: 100%;
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 13px;
    padding: 10px 36px 10px 14px;
    outline: none;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23aaa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.vidai-select:focus {
    border-color: rgba(139, 92, 246, 0.5);
}

.vidai-select option {
    background: #1a1a2e;
    color: #e0e0e0;
    padding: 10px 14px;
    font-size: 13px;
}

.vidai-select option:hover,
.vidai-select option:checked {
    background: #2d2b55;
    color: #fff;
}

/* VIP Gate */
.vidai-vip-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px 20px;
}

.vidai-vip-gate-inner {
    text-align: center;
    max-width: 420px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 20px;
}

.vidai-vip-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.vidai-vip-gate-inner h2 {
    font-size: 22px;
    color: #f3f4f6;
    margin: 0 0 10px;
}

.vidai-vip-gate-inner p {
    color: #9ca3af;
    font-size: 14px;
    margin: 0 0 24px;
    line-height: 1.6;
}

.vidai-vip-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.vidai-vip-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

/* =============================================
   AI STUDIO — Upload Zones
   ============================================= */

.vidai-upload-row {
    display: flex;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 20px;
}

.vidai-upload-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #6b7280;
    min-width: 40px;
}

.vidai-upload-single {
    max-width: 400px;
    margin-bottom: 20px;
}

.vidai-upload-zone {
    flex: 1;
    min-height: 200px;
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.15);
}

.vidai-upload-zone:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.05);
}

.vidai-upload-zone.vidai-dragover {
    border-color: rgba(139, 92, 246, 0.6);
    background: rgba(139, 92, 246, 0.1);
    transform: scale(1.01);
}

.vidai-upload-zone.vidai-uploaded {
    border-color: rgba(34, 197, 94, 0.4);
    border-style: solid;
}

.vidai-upload-zone.vidai-uploading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.vidai-upload-zone.vidai-uploading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: vidai-spin 0.8s linear infinite;
    z-index: 3;
}

@keyframes vidai-spin {
    to {
        transform: rotate(360deg);
    }
}

.vidai-upload-placeholder {
    text-align: center;
    padding: 20px;
}

.vidai-upload-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.vidai-upload-text {
    font-size: 14px;
    color: #d1d5db;
    font-weight: 500;
    margin-bottom: 4px;
}

.vidai-upload-hint {
    font-size: 12px;
    color: #6b7280;
}

.vidai-file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.vidai-upload-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.vidai-upload-preview-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
    background: #000;
}

.vidai-audio-info {
    text-align: center;
    padding: 16px;
    width: 100%;
}

.vidai-audio-name {
    display: block;
    font-size: 13px;
    color: #d1d5db;
    margin-bottom: 8px;
    word-break: break-all;
}

/* =============================================
   AI STUDIO — Active Jobs
   ============================================= */

.vidai-active-section {
    margin-bottom: 24px;
}

.vidai-active-section h3 {
    font-size: 16px;
    color: #f3f4f6;
    margin: 0 0 12px;
}

.vidai-active-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vidai-active-job {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    position: relative;
}

.vidai-job-cancel {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.vidai-job-cancel:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.vidai-job-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.vidai-job-mode {
    font-size: 13px;
    color: #d1d5db;
    font-weight: 500;
}

.vidai-job-status {
    font-size: 12px;
    color: #8b5cf6;
}

.vidai-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.vidai-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* =============================================
   AI STUDIO — Gallery
   ============================================= */

.vidai-gallery-section {
    margin-top: 32px;
}

.vidai-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.vidai-gallery-header h3 {
    font-size: 16px;
    color: #f3f4f6;
    margin: 0;
}

.vidai-daily-count {
    font-size: 12px;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 8px;
}

.vidai-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.vidai-gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.vidai-gallery-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.vidai-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.vidai-gallery-media {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}

.vidai-gallery-img,
.vidai-gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vidai-gallery-info {
    padding: 12px;
}

.vidai-gallery-mode {
    font-size: 11px;
    color: #8b5cf6;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vidai-gallery-prompt {
    font-size: 12px;
    color: #9ca3af;
    margin: 6px 0 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.vidai-gallery-date {
    display: block;
    font-size: 11px;
    color: #4b5563;
    margin-top: 6px;
}

.vidai-gallery-actions {
    display: flex;
    gap: 6px;
    padding: 0 12px 12px;
}

.vidai-gallery-action {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.vidai-gallery-action:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

/* Spinner for buttons */
.vidai-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vidai-spin 0.7s linear infinite;
    vertical-align: middle;
}

/* Gallery play overlay */
.vidai-gallery-media {
    cursor: pointer;
}

.vidai-gallery-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    pointer-events: none;
}

.vidai-gallery-media:hover .vidai-gallery-play {
    background: rgba(139, 92, 246, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Multi-video badge */
.vidai-gallery-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

/* =============================================
   AI STUDIO — Video Review Modal
   ============================================= */

.vidai-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    padding: 20px;
}

.vidai-modal {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.vidai-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vidai-modal-header h3 {
    font-size: 15px;
    color: #e0e0e0;
    margin: 0;
    font-weight: 600;
}

.vidai-modal-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vidai-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.vidai-modal-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    color: #c4b5fd;
}

.vidai-modal-close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.vidai-modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.vidai-modal-body {
    flex: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.vidai-modal-video {
    width: 100%;
    max-height: 60vh;
    outline: none;
}

.vidai-modal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vidai-modal-nav-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.vidai-modal-nav-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

.vidai-modal-counter {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.vidai-modal-prompt {
    padding: 12px 20px;
    font-size: 12px;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    line-height: 1.5;
    max-height: 60px;
    overflow-y: auto;
}

@media (max-width: 640px) {
    .vidai-modal {
        max-width: 100%;
        border-radius: 12px;
    }

    .vidai-modal-video {
        max-height: 50vh;
    }
}

/* =============================================
   AI STUDIO — Responsive
   ============================================= */

@media (max-width: 900px) {
    .vidai-tabs {
        gap: 4px;
        padding: 4px;
    }

    .vidai-tab {
        padding: 10px 12px;
        min-width: 100px;
    }

    .vidai-tab-label {
        font-size: 11px;
    }

    .vidai-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .vidai-form-row {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .vidai-tabs {
        flex-wrap: nowrap;
    }

    .vidai-tab {
        flex-direction: column;
        gap: 4px;
        min-width: 80px;
        padding: 8px 6px;
    }

    .vidai-tab-label {
        font-size: 10px;
    }

    .vidai-upload-row {
        flex-direction: column;
    }

    .vidai-upload-arrow {
        transform: rotate(90deg);
        min-width: auto;
        padding: 4px 0;
    }

    .vidai-panel {
        padding: 16px;
    }

    .vidai-gallery {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   MANAGED HOSTING PAGE
   ============================================= */

/* --- Hero --- */
.mh-hero {
    padding: 80px 24px 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.mh-hero-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.mh-hero-left {
    flex: 1;
}

.mh-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(168, 85, 247, 0.15));
    color: #a78bfa;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.mh-badge-dark {
    background: rgba(255, 255, 255, 0.06);
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.1);
}

.mh-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.1;
}

.mh-hero-desc {
    font-size: 16px;
    color: #a0a0b0;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 520px;
}

.mh-hero-btns {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.mh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.mh-btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: #fff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.mh-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.4);
}

.mh-btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.mh-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mh-btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Stats */
.mh-hero-stats {
    display: flex;
    gap: 40px;
}

.mh-stat {
    display: flex;
    flex-direction: column;
}

.mh-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #a78bfa;
}

.mh-stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Install Card */
.mh-hero-right {
    flex: 0 0 380px;
}

.mh-install-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.mh-install-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mh-install-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mh-dot-done {
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid #22c55e;
}

.mh-dot-done::after {
    content: '✓';
    color: #22c55e;
    font-size: 14px;
    font-weight: 700;
}

.mh-dot-loading {
    background: rgba(139, 92, 246, 0.15);
    border: 2px solid #8b5cf6;
    border-top-color: transparent;
    animation: mh-spin 1s linear infinite;
}

@keyframes mh-spin {
    to {
        transform: rotate(360deg);
    }
}

.mh-install-info strong {
    display: block;
    color: #e0e0e0;
    font-size: 15px;
}

.mh-install-info small {
    color: #888;
    font-size: 12px;
}

/* --- Apps Section --- */
.mh-apps {
    padding: 60px 24px 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.mh-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.mh-section-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
}

.mh-section-sub {
    color: #888;
    font-size: 14px;
    margin: 0;
}

.mh-section-sub-wide {
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

.mh-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* App Card */
.mh-app-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mh-app-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.mh-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.mh-app-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.mh-app-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.5;
    margin: 0;
}

.mh-app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mh-tag {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 500;
}

.mh-tag-blue {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
}

.mh-tag-purple {
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
}

.mh-tag-green {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.mh-app-price {
    font-size: 13px;
    color: #888;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mh-app-price strong {
    color: #a78bfa;
    font-weight: 700;
}

/* --- Modal --- */
.mh-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.mh-modal {
    background: #141422;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 36px;
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.mh-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.mh-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mh-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 28px;
}

.mh-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mh-plan-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}

.mh-plan-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.mh-plan-name {
    font-size: 16px;
    font-weight: 700;
    color: #e0e0e0;
    margin: 0 0 16px;
}

.mh-plan-price {
    font-size: 28px;
    font-weight: 800;
    color: #a78bfa;
    line-height: 1;
}

.mh-plan-currency {
    font-size: 18px;
    font-weight: 600;
    text-decoration: underline;
}

.mh-plan-period {
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
}

.mh-plan-features {
    flex: 1;
    margin-bottom: 20px;
}

.mh-plan-features strong {
    display: block;
    color: #ccc;
    font-size: 13px;
    margin-bottom: 10px;
}

.mh-plan-feature {
    font-size: 13px;
    color: #999;
    padding: 3px 0;
    line-height: 1.4;
}

.mh-check {
    color: #22c55e;
    font-weight: 700;
    margin-right: 6px;
}

.mh-plan-select {
    display: block;
    text-align: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #aaa;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    margin-top: auto;
}

.mh-plan-select:hover {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: #fff;
    border-color: transparent;
}

/* --- Request Section --- */
.mh-request {
    padding: 60px 24px 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.mh-request-header {
    text-align: center;
    margin-bottom: 48px;
}

.mh-request-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.mh-request-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #e0e0e0;
    margin: 0 0 16px;
}

/* Vote Table */
.mh-vote-table {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
}

.mh-vote-header {
    display: grid;
    grid-template-columns: 60px 1fr 80px 80px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mh-vote-item {
    display: grid;
    grid-template-columns: 60px 1fr 80px 80px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mh-vote-item:last-child {
    border-bottom: none;
}

.mh-vote-rank {
    font-size: 18px;
}

.mh-vote-name {
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
}

.mh-vote-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    width: fit-content;
}

.mh-vote-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.mh-vote-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

/* Request Form */
.mh-request-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
}

.mh-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #ccc;
    margin-bottom: 8px;
}

.mh-form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 14px;
    padding: 11px 14px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.mh-form-input:focus {
    border-color: rgba(139, 92, 246, 0.5);
}

.mh-form-hint {
    display: block;
    font-size: 11px;
    color: #666;
    margin: 6px 0 16px;
}

.mh-how-it-works {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px;
}

.mh-how-it-works h4 {
    font-size: 14px;
    font-weight: 600;
    color: #ccc;
    margin: 0 0 12px;
}

.mh-how-it-works ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.mh-how-it-works li {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 4px;
}

/* --- CTA --- */
.mh-cta {
    text-align: center;
    padding: 60px 24px 80px;
    max-width: 600px;
    margin: 0 auto;
}

.mh-cta-title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
}

.mh-cta-desc {
    color: #888;
    font-size: 14px;
    margin-bottom: 28px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .mh-hero-inner {
        flex-direction: column;
        gap: 40px;
    }

    .mh-hero-right {
        flex: none;
        width: 100%;
        max-width: 380px;
    }

    .mh-hero-title {
        font-size: 36px;
    }

    .mh-plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mh-request-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .mh-hero {
        padding: 40px 16px 40px;
    }

    .mh-hero-title {
        font-size: 28px;
    }

    .mh-hero-stats {
        gap: 24px;
    }

    .mh-stat-number {
        font-size: 22px;
    }

    .mh-apps-grid {
        grid-template-columns: 1fr;
    }

    .mh-plans-grid {
        grid-template-columns: 1fr;
    }

    .mh-section-title {
        font-size: 26px;
    }

    .mh-modal {
        padding: 20px;
    }

    .mh-hero-btns {
        flex-direction: column;
    }
}

/* =============================================
   CHỢ / MARKETPLACE — Premium Redesign
   ============================================= */
.cho-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cho-container {
    width: 100%;
}

/* Category Tabs */
.cho-cat-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
    justify-content: center;
}

.cho-cat-btn {
    padding: 10px 22px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cho-cat-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.15);
}

.cho-cat-btn.active {
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

/* Product Grid */
.cho-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Product Card — Glassmorphism */
.cho-product-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px 24px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}

/* Accent line at top */
.cho-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cho-product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(124, 58, 237, 0.05);
    background: rgba(255, 255, 255, 0.06);
}

.cho-product-card:hover::before {
    opacity: 1;
}

/* Featured Card — Standout Design */
.cho-product-featured {
    border: 2px solid transparent;
    background-image: linear-gradient(rgba(15, 15, 30, 0.95), rgba(15, 15, 30, 0.95)),
        linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 8px 32px rgba(66, 133, 244, 0.15);
}

.cho-product-featured::before {
    height: 3px;
    background: linear-gradient(90deg, #4285f4, #34a853, #fbbc05, #ea4335);
    opacity: 1;
}

.cho-product-featured:hover {
    box-shadow:
        0 20px 50px rgba(66, 133, 244, 0.25),
        0 0 60px rgba(66, 133, 244, 0.08);
}

/* Coming Soon Card — Elegant, Not Broken */
.cho-product-coming {
    opacity: 1;
}

.cho-product-coming::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 30, 0.35);
    border-radius: 20px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.cho-product-coming:hover {
    transform: translateY(-4px);
}

.cho-product-coming:hover::after {
    background: rgba(15, 15, 30, 0.2);
}

/* Badge */
.cho-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cho-badge-hot {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    animation: cho-pulse 2s infinite;
}

@keyframes cho-pulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(239, 68, 68, 0.7);
    }
}

.cho-badge-soon {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.25);
}

/* Product Icon — Larger, with glow ring */
.cho-product-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-weight: 800;
    color: #fff;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cho-product-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

/* Product Name */
.cho-product-name {
    font-size: 19px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.cho-product-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 18px;
    line-height: 1.5;
}

/* Product Features — Premium List */
.cho-product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.cho-product-features li {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

/* Pricing */
.cho-product-pricing {
    margin-bottom: 18px;
}

.cho-price-original {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.cho-price-original s {
    color: #475569;
}

.cho-price-save {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
}

.cho-price-current {
    font-size: 30px;
    font-weight: 800;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cho-price-current span {
    font-size: 14px;
    font-weight: 500;
    -webkit-text-fill-color: #64748b;
}

.cho-price-tba {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    -webkit-text-fill-color: #64748b;
}

/* Buy Button — With Shine Effect */
.cho-buy-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.cho-buy-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.cho-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

.cho-buy-btn:hover::after {
    left: 125%;
}

.cho-buy-btn:active {
    transform: translateY(0);
}

.cho-btn-disabled {
    background: rgba(100, 116, 139, 0.15);
    color: #64748b;
    box-shadow: none;
    cursor: not-allowed;
}

.cho-btn-disabled::after {
    display: none;
}

.cho-btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Product Note */
.cho-product-note {
    font-size: 11px;
    color: #475569;
    text-align: center;
    margin: 12px 0 0;
    letter-spacing: 0.01em;
}

/* Share Row */
.cho-share-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cho-share-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    margin-right: 2px;
}

.cho-share-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.4);
    padding: 0;
    font-family: inherit;
}

.cho-share-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-1px);
}

.cho-share-fb:hover {
    border-color: #1877f2;
    color: #1877f2;
}

.cho-share-tw:hover {
    border-color: #1da1f2;
    color: #1da1f2;
}

.cho-share-zalo:hover {
    border-color: #0068ff;
    color: #0068ff;
}

.cho-share-copy:hover {
    border-color: #10b981;
    color: #10b981;
}

/* Dealer Section Header */
.cho-dealer-header {
    text-align: center;
    margin-bottom: 24px;
}

.cho-dealer-title {
    color: #fff;
    font-size: 22px;
    margin-top: 8px;
}

.cho-dealer-subtitle {
    color: #9ca3af;
    font-size: 14px;
}

/* Dealer CTA */
.cho-dealer-cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 16px;
    padding: 40px 24px;
}

.cho-dealer-cta-title {
    color: #fff;
    margin: 12px 0 8px;
    font-size: 20px;
}

.cho-dealer-cta-desc {
    color: #9ca3af;
    font-size: 14px;
    max-width: 500px;
    margin: 0 auto 20px;
}

/* Dealer Badge */
.cho-badge-dealer {
    background: rgba(124, 58, 237, 0.2);
    color: #a78bfa;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* Stock Badge */
.cho-product-meta {
    text-align: center;
    margin: 8px 0 12px;
}

.cho-stock-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
}

.cho-in-stock {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.cho-out-stock {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

/* Detail Button */
.cho-detail-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(135deg, #7c3aed, #6366f1) !important;
}

/* More features indicator */
.cho-more-features {
    color: #7c3aed !important;
    font-weight: 600;
    font-style: italic;
}

/* Trust Section — Premium */
.cho-trust-section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 56px;
}

.cho-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cho-trust-item {
    text-align: center;
    padding: 28px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cho-trust-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cho-trust-item:hover {
    border-color: rgba(124, 58, 237, 0.15);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cho-trust-item:hover::before {
    opacity: 1;
}

.cho-trust-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 14px;
}

.cho-trust-item strong {
    display: block;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cho-trust-item p {
    color: #64748b;
    font-size: 12px;
    margin: 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .cho-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cho-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .cho-products-grid {
        grid-template-columns: 1fr;
    }

    .cho-trust-grid {
        grid-template-columns: 1fr;
    }

    .cho-cat-tabs {
        gap: 6px;
    }

    .cho-cat-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .cho-price-current {
        font-size: 24px;
    }
}


/* =============================================
   TÀI NGUYÊN ĐÃ MUA
   ============================================= */
.tnm-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tnm-container {
    width: 100%;
}

.tnm-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 8px;
}

.tnm-section-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px;
}

.tnm-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

/* Resource Card — Premium Design */
.tnm-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.tnm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.3), transparent);
}

.tnm-card:hover {
    border-color: rgba(124, 92, 255, 0.25);
    box-shadow: 0 8px 32px rgba(124, 92, 255, 0.1), 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.tnm-card-active {
    border-left: 3px solid #10b981;
}

.tnm-card-pending {
    border-left: 3px solid #f59e0b;
}

.tnm-card-expired {
    border-left: 3px solid #6b7280;
    opacity: 0.6;
}

.tnm-card-revoked {
    border-left: 3px solid #ef4444;
    opacity: 0.5;
}

.tnm-card-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(124, 92, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tnm-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.tnm-card-icon .tnm-icon-emoji {
    font-size: 28px;
    line-height: 1;
}

.tnm-card-body {
    flex: 1;
    min-width: 0;
}

.tnm-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.tnm-card-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.tnm-card-expiry {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.tnm-card-desc {
    font-size: 13px;
    color: #94a3b8;
    margin: 8px 0 0;
    line-height: 1.5;
}

.tnm-card-desc code {
    color: #7c3aed;
    font-weight: 600;
}

/* Badges */
.tnm-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}

.tnm-badge-active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.tnm-badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.tnm-badge-expired {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}

.tnm-badge-revoked {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* Credentials Box */
.tnm-creds-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
}

.tnm-cred-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    gap: 12px;
}

.tnm-cred-row:last-child {
    border-bottom: none;
}

.tnm-cred-label {
    font-size: 12px;
    color: #64748b;
    min-width: 70px;
    flex-shrink: 0;
}

.tnm-cred-value {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.tnm-cred-value code {
    font-size: 13px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 10px;
    border-radius: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tnm-cred-value a {
    color: #7c3aed;
    font-size: 13px;
    word-break: break-all;
}

.tnm-cred-value span {
    font-size: 13px;
    color: #94a3b8;
}

.tnm-copy-btn,
.tnm-eye-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.tnm-copy-btn:hover,
.tnm-eye-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.tnm-admin-note {
    font-size: 12px;
    color: #64748b;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(124, 58, 237, 0.06);
    border-radius: 8px;
    border: 1px solid rgba(124, 58, 237, 0.1);
}

/* Empty State */
.tnm-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.tnm-empty-state h3 {
    font-size: 20px;
    color: #e2e8f0;
    margin: 16px 0 8px;
}

.tnm-empty-state p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px;
}

.tnm-login-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tnm-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.tnm-loading {
    text-align: center;
    padding: 80px 20px;
    color: #64748b;
}

.tnm-loading .mcb-spinner {
    margin: 0 auto 16px;
}

/* Responsive */
@media (max-width: 640px) {
    .tnm-card {
        flex-direction: column;
        gap: 12px;
    }

    .tnm-card-icon {
        font-size: 28px;
    }

    .tnm-cred-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .tnm-cred-value {
        width: 100%;
    }
}

/* ========== DEALER PAGE (dai-ly) ========== */
.dl-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dl-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dl-label {
    font-size: 13px;
    font-weight: 600;
    color: #c9d1d9;
}

.dl-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 14px;
    color: #e6edf3;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.dl-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.dl-input::placeholder {
    color: #6b7280;
}

.dl-input option {
    background: #1e1e2e;
    color: #e6edf3;
}

@media (max-width: 640px) {
    .dl-form-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   PRODUCT DETAIL PAGE — /san-pham/
   ============================================= */

/* Breadcrumb */
.sp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.sp-breadcrumb a {
    color: #a78bfa;
    text-decoration: none;
}

.sp-breadcrumb a:hover {
    text-decoration: underline;
}

.sp-breadcrumb-sep {
    color: #4b5563;
}

.sp-breadcrumb-current {
    color: #9ca3af;
}

/* Loading */
.sp-loading {
    text-align: center;
    padding: 80px 0;
    color: #9ca3af;
}

.sp-error {
    text-align: center;
    padding: 80px 0;
    color: #9ca3af;
}

.sp-error h2 {
    color: #fff;
    margin: 12px 0 8px;
}

/* Detail Grid */
.sp-detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 900px) {
    .sp-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Main */
.sp-product-main {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 32px;
}

.sp-product-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sp-product-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-product-title {
    font-size: 24px;
    font-weight: 800;
    color: #f0f0f5;
    margin: 0;
    line-height: 1.3;
}

.sp-product-type {
    color: #9ca3af;
    font-size: 14px;
    margin: 4px 0 0;
}

/* Sections */
.sp-section {
    margin-bottom: 24px;
}

.sp-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #e6edf3;
    margin: 0 0 12px;
}

.sp-description {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.7;
}

.sp-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.sp-features-list li {
    color: #c9d1d9;
    font-size: 14px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    line-height: 1.4;
}

.sp-meta {
    color: #6b7280;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 16px;
}

/* Sidebar */
.sp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 100px;
}

/* Price Card */
.sp-price-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.sp-price-tag {
    margin-bottom: 16px;
}

.sp-price-label {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.sp-price-value {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sp-stock-info {
    margin-bottom: 16px;
}

.sp-buy-btn {
    margin-bottom: 12px;
}

.sp-payment-note {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

/* Dealer Card */
.sp-dealer-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
}

.sp-dealer-title {
    font-size: 14px;
    font-weight: 700;
    color: #e6edf3;
    margin: 0 0 14px;
}

.sp-dealer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.sp-dealer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(124, 58, 237, 0.3);
}

.sp-dealer-info strong {
    display: block;
    color: #e6edf3;
    font-size: 14px;
}

.sp-dealer-badge {
    display: block;
    font-size: 11px;
    color: #10b981;
    margin-top: 2px;
}

.sp-chat-trigger-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    background: rgba(124, 58, 237, 0.08);
    color: #a78bfa;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.sp-chat-trigger-btn:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.5);
}

/* =============================================
   CHAT WIDGET — Floating messenger style
   ============================================= */
.sp-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    max-height: 520px;
    background: #1a1a2e;
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    overflow: hidden;
    animation: chatSlideUp 0.3s ease;
}

@keyframes chatSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sp-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(124, 58, 237, 0.1);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.sp-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.sp-chat-header-info strong {
    display: block;
    color: #e6edf3;
    font-size: 13px;
}

.sp-chat-product {
    display: block;
    font-size: 11px;
    color: #9ca3af;
}

.sp-chat-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.sp-chat-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Messages area */
.sp-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-height: 280px;
    max-height: 340px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp-chat-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.sp-chat-empty p {
    margin: 8px 0 0;
    font-size: 13px;
}

/* Message bubbles */
.sp-chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.sp-msg-mine {
    align-self: flex-end;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.sp-msg-other {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    color: #e6edf3;
    border-bottom-left-radius: 4px;
}

.sp-msg-sender {
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 2px;
    opacity: 0.7;
}

.sp-msg-time {
    font-size: 10px;
    opacity: 0.5;
    margin-top: 4px;
    text-align: right;
}

/* Chat input */
.sp-chat-input-wrap {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.sp-chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 14px;
    color: #e6edf3;
    font-size: 13px;
    resize: none;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.sp-chat-input:focus {
    border-color: rgba(124, 58, 237, 0.5);
}

.sp-chat-input::placeholder {
    color: #6b7280;
}

.sp-chat-send {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.sp-chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.sp-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 480px) {
    .sp-chat-widget {
        width: calc(100% - 32px);
        right: 16px;
        bottom: 16px;
    }
}

/* ============================================================
   MV CREATOR — AI Music Video
   ============================================================ */
.mv-hero {
    text-align: center;
    padding: 48px 24px 32px;
}

.mv-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #c084fc;
    margin-bottom: 16px;
}

.mv-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0 0 12px;
    line-height: 1.2;
}

.mv-gradient-text {
    background: linear-gradient(135deg, #a78bfa, #ec4899, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mv-hero-desc {
    color: #94a3b8;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* VIP Gate */
.mv-vip-gate {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 24px;
}

.mv-vip-gate-inner {
    text-align: center;
    padding: 48px 32px;
    background: rgba(124, 58, 237, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 16px;
}

.mv-vip-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.mv-vip-gate-inner h2 {
    color: #f1f5f9;
    margin: 0 0 8px;
    font-size: 1.5rem;
}

.mv-vip-gate-inner p {
    color: #94a3b8;
    margin: 0 0 24px;
}

.mv-vip-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.mv-vip-btn:hover {
    transform: translateY(-2px);
}

/* App Container */
.mv-app {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

/* Steps Bar */
.mv-steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.mv-step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.mv-step-indicator.active,
.mv-step-indicator.done {
    opacity: 1;
}

.mv-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.15);
    border: 2px solid rgba(124, 58, 237, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #c084fc;
}

.mv-step-indicator.active .mv-step-num {
    background: #7c3aed;
    border-color: #7c3aed;
    color: white;
}

.mv-step-indicator.done .mv-step-num {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.mv-step-label {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

.mv-step-indicator.active .mv-step-label {
    color: #e2e8f0;
}

.mv-step-connector {
    width: 48px;
    height: 2px;
    background: rgba(124, 58, 237, 0.2);
}

/* Panels */
.mv-panel {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(10px);
    margin-bottom: 32px;
}

.mv-panel-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
}

/* Labels & Inputs */
.mv-label {
    display: block;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mv-optional {
    color: #64748b;
    font-weight: 400;
    text-transform: none;
    font-size: 0.8rem;
}

.mv-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.mv-textarea:focus {
    border-color: rgba(124, 58, 237, 0.5);
    outline: none;
}

.mv-textarea-lg {
    min-height: 200px;
}

.mv-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    color: #e2e8f0;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.mv-input:focus {
    border-color: rgba(124, 58, 237, 0.5);
    outline: none;
}

/* Mode Toggle */
.mv-mode-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.mv-mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.mv-mode-btn:hover {
    background: rgba(124, 58, 237, 0.08);
}

.mv-mode-btn.active {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.4);
    color: #c084fc;
}

/* Radio Group */
.mv-radio-group {
    display: flex;
    gap: 16px;
}

.mv-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    font-size: 0.9rem;
    cursor: pointer;
}

.mv-radio input {
    accent-color: #7c3aed;
}

.mv-form-row {
    display: flex;
    gap: 16px;
    margin: 16px 0;
}

.mv-form-group {
    flex: 1;
    margin-bottom: 16px;
}

/* Style Grid */
.mv-style-section {}

.mv-style-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mv-style-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: #94a3b8;
    font-size: 0.85rem;
}

.mv-style-card:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.2);
}

.mv-style-card.active {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.5);
    color: #c084fc;
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.2);
}

.mv-style-icon {
    font-size: 1.2rem;
}

.mv-style-name {
    font-weight: 500;
}

/* Actions */
.mv-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mv-quota {
    color: #64748b;
    font-size: 0.85rem;
    margin-right: auto;
}

.mv-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.mv-btn-primary {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.mv-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.mv-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.mv-btn-secondary {
    background: rgba(124, 58, 237, 0.12);
    color: #c084fc;
    border: 1px solid rgba(124, 58, 237, 0.25);
}

.mv-btn-secondary:hover {
    background: rgba(124, 58, 237, 0.2);
}

.mv-btn-ghost {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mv-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mv-btn-glow {
    animation: mvGlow 2s ease-in-out infinite;
}

@keyframes mvGlow {

    0%,
    100% {
        box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
    }

    50% {
        box-shadow: 0 4px 28px rgba(124, 58, 237, 0.6);
    }
}

.mv-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Preview */
.mv-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mv-preview-title {
    color: #f1f5f9;
    font-size: 1.3rem;
    margin: 0;
}

.mv-preview-style {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(124, 58, 237, 0.15);
    border-radius: 8px;
    color: #c084fc;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 4px;
}

/* Processing */
.mv-processing {
    text-align: center;
    padding: 32px 0;
}

.mv-processing-title {
    color: #f1f5f9;
    font-size: 1.5rem;
    margin: 0 0 8px;
}

.mv-processing-status {
    color: #94a3b8;
    margin: 0 0 24px;
}

/* Vinyl Animation */
.mv-processing-anim {
    margin-bottom: 24px;
}

.mv-vinyl {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #1e1e2e, #2d1b69, #1e1e2e, #4a1d96, #1e1e2e);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: vinylSpin 3s linear infinite;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
}

.mv-vinyl-inner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

@keyframes vinylSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Progress Bar */
.mv-progress-bar-wrap {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    margin: 0 auto 8px;
    overflow: hidden;
}

.mv-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #ec4899);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.mv-progress-text {
    color: #c084fc;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Stages */
.mv-step-stages {
    margin-top: 24px;
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.mv-stage {
    color: #64748b;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.mv-stage.active {
    color: #c084fc;
    background: rgba(124, 58, 237, 0.1);
}

.mv-stage.done {
    color: #10b981;
}

.mv-stage-icon {
    margin-right: 6px;
}

/* Result */
.mv-result {
    text-align: center;
}

.mv-result-title {
    color: #f1f5f9;
    font-size: 1.8rem;
    margin: 0 0 4px;
}

.mv-result-title-name {
    color: #c084fc;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
}

/* Player */
.mv-player {
    max-width: 640px;
    margin: 0 auto 24px;
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mv-player-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}

.mv-player-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.mv-player-lyrics-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    white-space: pre-line;
}

.mv-player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.mv-player-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #7c3aed;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.mv-player-btn:hover {
    transform: scale(1.1);
}

.mv-player-time {
    color: #94a3b8;
    font-size: 0.8rem;
    min-width: 36px;
}

.mv-player-progress {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.mv-player-progress-fill {
    height: 100%;
    background: #7c3aed;
    border-radius: 2px;
    transition: width 0.3s;
    width: 0;
}

/* Result Images */
.mv-result-images {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 16px;
    margin-bottom: 24px;
}

.mv-result-img {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.mv-result-img:hover {
    border-color: #7c3aed;
}

.mv-result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* History */
.mv-history-section {
    margin-top: 16px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px 48px;
}

.mv-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mv-section-header h2 {
    color: #f1f5f9;
    font-size: 1.3rem;
    margin: 0;
}

.mv-history-count {
    color: #64748b;
    font-size: 0.85rem;
}

.mv-history-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mv-history-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: border-color 0.2s;
}

.mv-history-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
}

.mv-history-thumb {
    width: 72px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
}

.mv-history-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mv-history-no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.mv-history-info {
    flex: 1;
    min-width: 0;
}

.mv-history-title {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mv-history-meta {
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 2px;
}

.mv-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
}

.mv-badge-ok {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}

.mv-badge-progress {
    background: rgba(124, 58, 237, 0.12);
    color: #c084fc;
}

.mv-badge-fail {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.mv-history-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.mv-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}

.mv-action-btn:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.3);
}

.mv-history-empty {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

/* Lyrics Preview */
.mv-lyrics-preview {
    margin-top: 16px;
    padding: 16px;
    background: rgba(124, 58, 237, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 12px;
}

.mv-lyrics-pre {
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.7;
    white-space: pre-wrap;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .mv-panel-grid {
        grid-template-columns: 1fr;
    }

    .mv-hero-title {
        font-size: 1.6rem;
    }

    .mv-steps-bar {
        gap: 6px;
    }

    .mv-step-label {
        display: none;
    }

    .mv-step-connector {
        width: 24px;
    }

    .mv-panel {
        padding: 20px 16px;
    }

    .mv-style-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mv-actions {
        flex-wrap: wrap;
    }

    .mv-form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ======== AI Image Generator ======== */
.img-size-grid {
    display: flex;
    gap: 12px;
}

.img-size-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    text-align: left;
}

.img-size-btn:hover {
    border-color: rgba(124, 58, 237, 0.3);
}

.img-size-btn.active {
    border-color: #7c3aed;
    background: rgba(124, 58, 237, 0.1);
    color: var(--text-primary);
}

.img-size-icon {
    font-size: 1.4rem;
    opacity: 0.6;
}

.img-size-btn.active .img-size-icon {
    opacity: 1;
}

.img-size-btn small {
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.img-result-container {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.img-result-image {
    position: relative;
    display: flex;
    justify-content: center;
    background: #0a0a0a;
}

.img-result-image img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 12px;
}

.img-result-info {
    padding: 16px 20px;
}

.img-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.img-history-card {
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.img-history-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.img-history-thumb {
    aspect-ratio: 1;
    overflow: hidden;
    background: #0a0a0a;
}

.img-history-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.img-history-card:hover .img-history-thumb img {
    transform: scale(1.05);
}

.img-history-info {
    padding: 12px 14px;
}

.img-history-prompt {
    font-size: 0.82rem;
    color: var(--text-secondary);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
    line-height: 1.4;
}

.img-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
    color: inherit;
    text-decoration: none;
}

.img-action-btn:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .img-size-grid {
        flex-direction: column;
    }

    .img-history-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .img-history-grid {
        grid-template-columns: 1fr;
    }
}

/* ======== AI Text Generator ======== */
.txt-mode-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.txt-mode-tab {
    flex: 1;
    min-width: 120px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.txt-mode-tab:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

.txt-mode-tab.active {
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
    font-weight: 600;
}

.txt-result-content {
    min-height: 100px;
}

.txt-rendered-md {
    line-height: 1.8;
    color: var(--text-secondary);
}

.txt-rendered-md h1,
.txt-rendered-md h2,
.txt-rendered-md h3 {
    color: var(--text-primary);
    margin: 20px 0 10px;
}

.txt-rendered-md h1 {
    font-size: 1.5rem;
}

.txt-rendered-md h2 {
    font-size: 1.25rem;
}

.txt-rendered-md h3 {
    font-size: 1.1rem;
}

.txt-rendered-md p {
    margin-bottom: 12px;
}

.txt-rendered-md ul,
.txt-rendered-md ol {
    margin: 8px 0;
    padding-left: 24px;
}

.txt-rendered-md li {
    margin-bottom: 4px;
}

.txt-rendered-md code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.txt-rendered-md pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 16px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 12px 0;
}

.txt-rendered-md pre code {
    background: none;
    padding: 0;
}

.txt-rendered-md blockquote {
    border-left: 3px solid #7c3aed;
    padding-left: 16px;
    margin: 12px 0;
    color: var(--text-tertiary);
}

.txt-rendered-md strong {
    color: var(--text-primary);
}

.txt-rendered-md hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.txt-action-btn {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.2s;
}

.txt-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.mv-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.mv-input:focus {
    border-color: #7c3aed;
}

.mv-input::placeholder {
    color: var(--text-tertiary);
}

@media (max-width: 768px) {
    .txt-mode-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .txt-mode-tab {
        min-width: auto;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* ======== Coupon Cards ======== */
.coupon-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.coupon-code-text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.coupon-copy-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
    color: inherit;
}

.coupon-copy-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.coupon-link-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    color: white;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.coupon-link-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    color: white;
}