/* ===================================================================
   SEYO TECHNOLOGIES - MODERN PREMIUM SAAS PRICING MATRIX STYLES
   Refined Modern Light SaaS Card + Rounded Tier Header Cards
   + Vibrant Glowing Check Badges + Admin Live Editor
   =================================================================== */

.pricing-matrix-wrapper {
    background: #f8fafc;
    color: #0f172a;
    font-family: var(--font-body, 'Plus Jakarta Sans', system-ui, sans-serif);
    min-height: 100vh;
}

/* Outer layout container */
.pricing-matrix-layout {
    display: flex;
    gap: 28px;
    align-items: stretch;
    min-height: 750px;
}

/* ================= LEFT SIDEBAR (PLATFORM SELECTOR) ================= */
.pricing-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 24px;
    padding: 30px 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(104, 45, 189, 0.08);
    display: flex;
    flex-direction: column;
}

.pricing-sidebar-title {
    color: #0f172a;
    font-size: 1.3rem;
    font-weight: 800;
    font-family: var(--font-heading, sans-serif);
    line-height: 1.35;
    margin-bottom: 22px;
    letter-spacing: -0.01em;
}

.pricing-sidebar-search {
    position: relative;
    margin-bottom: 18px;
}

.pricing-sidebar-search input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    padding: 8px 16px 8px 36px;
    color: #0f172a;
    font-size: 0.84rem;
    outline: none;
    transition: all 0.2s ease;
}

.pricing-sidebar-search input:focus {
    border-color: #682dbd;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(104, 45, 189, 0.15);
}

.pricing-sidebar-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
}

.pricing-platform-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 720px;
    padding-right: 4px;
}

.pricing-platform-list::-webkit-scrollbar {
    width: 5px;
}
.pricing-platform-list::-webkit-scrollbar-thumb {
    background: rgba(104, 45, 189, 0.25);
    border-radius: 10px;
}

.pricing-platform-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 9999px;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    border: 1px solid transparent;
}

.pricing-platform-item:hover {
    color: #0f172a;
    background: #f1f5f9;
    transform: translateX(3px);
}

.platform-bullet-label {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.platform-bullet-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #682dbd;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(104, 45, 189, 0.4);
}

/* Active Platform Pill */
.pricing-platform-item.active {
    background: linear-gradient(135deg, #521fa3 0%, #682dbd 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(104, 45, 189, 0.35);
    border-color: #682dbd;
}

.pricing-platform-item.active .platform-bullet-dot {
    display: none;
}

.pricing-platform-item.active .active-arrow {
    color: #ffffff;
    font-size: 0.85rem;
    display: inline-block;
    margin-left: 6px;
    animation: pulseArrow 1.5s infinite ease-in-out;
}

@keyframes pulseArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

/* ================= RIGHT MAIN MATRIX CARD (MODERN PREMIUM SAAS - NORMAL COMPACT SIZE) ================= */
.pricing-main-card {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 30px;
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
}

/* Main Top Header */
.pricing-matrix-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.platform-title-wrap h2 {
    color: #0f172a;
    font-weight: 800;
    font-size: 1.45rem;
    font-family: var(--font-heading, sans-serif);
    margin: 0 0 3px 0;
    letter-spacing: -0.01em;
}

.platform-title-wrap p {
    color: #64748b;
    font-size: 0.86rem;
    margin: 0;
    max-width: 650px;
    line-height: 1.45;
}

/* Upgraded Action Buttons - Normal Compact Size */
.matrix-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.matrix-btn-pill {
    background: #f8fafc;
    color: #0284c7;
    border: 1.5px solid #e2e8f0;
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.matrix-btn-pill:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
    transform: translateY(-1px);
}

.matrix-btn-pill i {
    font-size: 0.88rem;
}

/* ================= COMPARISON MATRIX TABLE ================= */
.matrix-table-container {
    margin-top: 18px;
    overflow-x: auto;
    position: relative;
    border-radius: 14px;
}

.matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 720px;
}

/* Table Header */
.matrix-table th {
    padding: 6px 6px 14px 6px;
    vertical-align: top;
    border-bottom: 2px solid #e2e8f0;
}

.matrix-table th.col-feature-name {
    text-align: left;
    width: 28%;
    padding-left: 10px;
    vertical-align: bottom;
    padding-bottom: 18px;
}

.feature-col-header-wrap h4 {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 2px 0;
    font-family: var(--font-heading, sans-serif);
}

.feature-col-header-wrap p {
    font-size: 0.74rem;
    color: #94a3b8;
    margin: 0;
}

/* ================= ROUNDED TIER CARDS IN HEADER - NORMAL COMPACT SIZE ================= */
.tier-header-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 10px 10px 10px;
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.tier-header-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
}

/* HIGHLIGHTED BEST SELLING CARD (Seyo Pro) */
.tier-header-card.best-selling {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    border: 2px solid #2563eb;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.14);
    padding-top: 16px;
}

.best-selling-pill-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 12px;
    border-radius: 9999px;
    box-shadow: 0 3px 10px rgba(234, 88, 12, 0.35);
    white-space: nowrap;
}

.tier-card-name {
    font-size: 0.96rem;
    font-weight: 800;
    color: #0f172a;
    font-family: var(--font-heading, sans-serif);
    margin-bottom: 2px;
}

.tier-card-price-box {
    margin-bottom: 6px;
}

.tier-card-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0284c7;
    font-family: var(--font-heading, sans-serif);
    line-height: 1.15;
    display: block;
}

.tier-header-card.best-selling .tier-card-price {
    color: #2563eb;
}

.tier-card-period {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 500;
}

.tier-card-btn {
    width: 100%;
    padding: 5px 10px;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.tier-card-btn:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25);
}

.tier-header-card.best-selling .tier-card-btn {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

.tier-header-card.best-selling .tier-card-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

/* ================= TABLE BODY ROWS - NORMAL COMPACT SIZE ================= */
.matrix-table td {
    padding: 10px 10px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.88rem;
    transition: background-color 0.15s ease;
}

.matrix-table tr:hover td {
    background-color: #f8fafc;
}

.matrix-table tr:hover td.highlight-col {
    background-color: #eaf2ff !important;
}

.matrix-table td.col-feature-name {
    text-align: left;
    font-weight: 600;
    color: #1e293b;
    padding-left: 10px;
    font-size: 0.88rem;
}

/* Highlighted Column in Rows (Lavender / Light Blue Soft Background) */
.matrix-table td.highlight-col {
    background: #f4f8ff;
    border-left: 1.5px solid rgba(37, 99, 235, 0.16);
    border-right: 1.5px solid rgba(37, 99, 235, 0.16);
}

/* ================= VIBRANT GLOWING CHECK ICONS & BADGES - NORMAL COMPACT SIZE ================= */
.matrix-check-glow {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
    box-shadow: 0 1px 6px rgba(37, 99, 235, 0.2);
    border: 1.5px solid rgba(37, 99, 235, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.matrix-check-glow:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.18);
}

.matrix-dash-subtle {
    color: #cbd5e1;
    font-size: 1.05rem;
    font-weight: 700;
}

/* ================= ADMIN CONTROLS & EDIT BAR ================= */
.admin-mode-banner {
    background: linear-gradient(135deg, #260a52 0%, #2e0d61 50%, #3b137a 100%);
    border: 2px solid #8b5cf6;
    border-radius: 14px;
    padding: 14px 22px;
    color: #ffffff;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 25px rgba(6, 78, 59, 0.4);
}

.admin-mode-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.98rem;
}

.admin-status-pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8b5cf6;
    box-shadow: 0 0 12px #8b5cf6;
    animation: adminPulse 1.5s infinite;
}

@keyframes adminPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.admin-actions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.btn-admin-pill {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-admin-pill:hover {
    background: #ffffff;
    color: #260a52;
    border-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-admin-save {
    background: #682dbd !important;
    border-color: #8b5cf6 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 0 14px rgba(104, 45, 189, 0.4);
}

.btn-admin-save:hover {
    background: #521fa3 !important;
    color: #ffffff !important;
}

.btn-admin-logout {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #fca5a5 !important;
}

.btn-admin-logout:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
}

/* Admin Editable Inputs */
.admin-input-text {
    width: 100%;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px dashed #0284c7;
    background: #f0f9ff;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.admin-input-text:focus {
    border-style: solid;
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(2, 132, 199, 0.25);
}

.admin-input-price {
    width: 100%;
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px dashed #682dbd;
    background: #f5f3ff;
    color: #2e0d61;
    font-weight: 800;
    font-size: 1.1rem;
    text-align: center;
    outline: none;
    margin-top: 4px;
}

.admin-input-price:focus {
    border-style: solid;
    border-color: #682dbd;
    background: #ffffff;
}

.admin-toggle-cell {
    cursor: pointer;
    user-select: none;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.admin-toggle-cell:hover {
    background: rgba(2, 132, 199, 0.12);
}

.admin-delete-row-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.admin-delete-row-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
}

/* Quick Add Feature Bar */
.admin-add-feature-bar {
    margin-top: 24px;
    padding: 18px 20px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.admin-badge-toggle-btn {
    background: #fed7aa;
    color: #c2410c;
    border: 1px solid #f97316;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    cursor: pointer;
    margin-top: 4px;
    display: inline-block;
}

.admin-badge-toggle-btn.active {
    background: #f97316;
    color: #ffffff;
}

/* Discreet Admin Trigger Button */
.admin-portal-trigger {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #cbd5e1;
    border-radius: 9999px;
    padding: 7px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.admin-portal-trigger:hover {
    background: rgba(104, 45, 189, 0.2);
    border-color: #682dbd;
    color: #8b5cf6;
}

/* Admin Auth Modal */
.admin-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-modal-card {
    background: #071c14;
    border: 1px solid rgba(104, 45, 189, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(104, 45, 189, 0.25);
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    padding: 32px;
    color: #ffffff;
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

/* Toast Message */
.pricing-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #260a52;
    border: 1px solid #8b5cf6;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    animation: toastSlide 0.3s ease;
}

@keyframes toastSlide {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .pricing-matrix-layout {
        flex-direction: column;
    }
    .pricing-sidebar {
        width: 100%;
        max-height: 380px;
    }
    .pricing-main-card {
        padding: 22px;
    }
}
