:root {
        --primary-color: #8a42ff;
        --secondary-color: #2b2b36;
        --accent-color: #6c63ff;
        --success-color: #10b981;
        --warning-color: #f59e0b;
        --danger-color: #ef4444;
        --info-color: #3b82f6;
        --light-color: #f8f9fa;
        --dark-color: #2b2b36;
        --border-radius: 12px;
        --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        --transition: all 0.3s ease;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background-color: #f8f9fa;
        color: #333;
        overflow-x: hidden;
    }

    /* Preloader */
    

    

    .loader__text::after {
        content: attr(data-text);
        position: absolute;
        left: 0;
        top: 0;
        color: var(--primary-color);
        overflow: hidden;
        width: 0;
        animation: loading 2s linear infinite;
    }

    @keyframes loading {
        0% { width: 0; }
        100% { width: 100%; }
    }

    /* Scroll to Top */
    .scroll-top {
        position: fixed;
        bottom: 30px;
        right: 30px;
        background: var(--primary-color);
        color: white;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
        text-decoration: none;
        font-size: 12px;
        text-align: center;
        line-height: 1.2;
        padding: 5px;
    }

    .scroll-top.show {
        opacity: 1;
        visibility: visible;
    }

    /* Overlay */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Dashboard Container */
    

    /* Sidebar */
    

    .sidebar__close {
        display: none;
        position: absolute;
        right: 20px;
        top: 20px;
        font-size: 24px;
        color: white;
        cursor: pointer;
        z-index: 1001;
    }

    .dashboard__logo {
        padding: 20px 15px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dashboard__logo img {
        max-width: 180px;
        height: auto;
    }

    .dashboard__menu {
        padding: 20px 0;
    }

    .dashboard__menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .dashboard__menu > ul > li {
        position: relative;
    }

    .dashboard__menu a {
        display: flex;
        align-items: center;
        padding: 12px 20px;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: var(--transition);
        border-left: 3px solid transparent;
    }

    .dashboard__menu a:hover,
    .dashboard__menu a.active {
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
        border-left-color: var(--primary-color);
    }

    .dashboard__menu a i {
        width: 24px;
        font-size: 18px;
        margin-right: 12px;
        text-align: center;
    }

    .dropdown__arrow {
        margin-left: auto;
        transition: var(--transition);
    }

    .dashboard__menu a:not(.collapsed) .dropdown__arrow i {
        transform: rotate(90deg);
    }

    .sidebar__dropdown {
        background: rgba(0, 0, 0, 0.2);
    }

    .sidebar__dropdown ul {
        padding-left: 20px;
    }

    .sidebar__dropdown a {
        padding: 10px 20px;
        padding-left: 40px;
        font-size: 14px;
        border-left: none;
    }

    .sidebar__dropdown a:hover,
    .sidebar__dropdown a.active {
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
    }

    /* Main Content */
    

    /* Header */
    .dashboard__header {
        background: white;
        padding: 15px 30px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: var(--box-shadow);
        height: 70px;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .current__balance {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .current__balance h4 {
        margin: 0;
        font-size: 16px;
        color: #6c757d;
    }

    .current__balance span {
        color: var(--primary-color);
        font-weight: 700;
    }

    .dashboard__header__widgets {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .ds__home {
        color: var(--primary-color);
        font-size: 20px;
        text-decoration: none;
    }

    /* Notification */
    .notification__btn {
        position: relative;
        color: #6c757d;
        font-size: 20px;
        cursor: pointer;
        background: none;
        border: none;
    }

    .notification__count {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #ff4757;
        color: white;
        font-size: 12px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dropdown-menu {
        border: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-radius: var(--border-radius);
        padding: 0;
        min-width: 300px;
    }

    .notification__wrap {
        padding: 20px;
    }

    .notification__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .notification__body a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #f1f1f1;
        text-decoration: none;
        color: #2b2b36;
    }

    .notification__body a:last-child {
        border-bottom: none;
    }

    .notification__footer {
        padding-top: 20px;
    }

    /* User Profile */
    .profile__dropdown {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
    }

    .profile__dropdown img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--primary-color);
    }

    .sidebar__open {
        display: none;
        font-size: 24px;
        color: var(--primary-color);
        cursor: pointer;
        background: none;
        border: none;
    }

    /* Content Wrapper */
    .dashboard__wrapper {
        flex: 1;
        padding: 30px;
        overflow-y: auto;
        max-width: 1400px;
        margin: 0 auto;
        width: 100%;
    }

    /* Page Header */
    .page-header {
        text-align: center;
        margin-bottom: 40px;
        padding: 20px 0;
    }

    .page-header h1 {
        font-size: 36px;
        font-weight: 700;
        color: var(--secondary-color);
        margin-bottom: 15px;
    }

    .page-header p {
        font-size: 18px;
        color: #6c757d;
        max-width: 600px;
        margin: 0 auto 20px;
    }

    /* Plan Type Selector */
    .plan-type-selector {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 40px;
        flex-wrap: wrap;
    }

    .plan-type-card {
        width: 200px;
        padding: 25px;
        background: white;
        border-radius: var(--border-radius);
        text-align: center;
        cursor: pointer;
        transition: var(--transition);
        border: 2px solid #e9ecef;
    }

    .plan-type-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--box-shadow);
    }

    .plan-type-card.active {
        border-color: var(--primary-color);
        background: linear-gradient(135deg, rgba(138, 66, 255, 0.05), rgba(108, 99, 255, 0.05));
    }

    .plan-type-icon {
        width: 60px;
        height: 60px;
        background: var(--primary-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
        color: white;
        font-size: 24px;
    }

    .plan-type-card h3 {
        font-size: 20px;
        font-weight: 600;
        margin-bottom: 10px;
        color: var(--secondary-color);
    }

    .plan-type-card p {
        color: #6c757d;
        font-size: 14px;
        margin: 0;
    }

    /* Billing Toggle */
    .billing-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        margin-bottom: 40px;
    }

    .billing-option {
        padding: 10px 25px;
        border-radius: 30px;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        border: 2px solid transparent;
    }

    .billing-option:hover {
        background: rgba(138, 66, 255, 0.1);
    }

    .billing-option.active {
        background: var(--primary-color);
        color: white;
    }

    .toggle-switch {
        position: relative;
        width: 60px;
        height: 30px;
    }

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .toggle-slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: .4s;
        border-radius: 30px;
    }

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 22px;
        width: 22px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

    input:checked + .toggle-slider {
        background-color: var(--primary-color);
    }

    input:checked + .toggle-slider:before {
        transform: translateX(30px);
    }

    /* Features Comparison */
    .features-comparison {
        background: white;
        border-radius: var(--border-radius);
        padding: 30px;
        margin-bottom: 40px;
        box-shadow: var(--box-shadow);
    }

    .features-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        flex-wrap: wrap;
        gap: 20px;
    }

    .features-header h3 {
        margin: 0;
        color: var(--secondary-color);
    }

    .account-selector {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .account-selector label {
        font-weight: 600;
        color: var(--secondary-color);
    }

    .account-input {
        width: 80px;
        padding: 10px;
        border: 2px solid #e9ecef;
        border-radius: var(--border-radius);
        text-align: center;
        font-weight: 600;
    }

    .account-input:focus {
        outline: none;
        border-color: var(--primary-color);
    }

    /* Comparison Table */
    .comparison-table {
        overflow-x: auto;
    }

    .comparison-table table {
        width: 100%;
        border-collapse: collapse;
        min-width: 800px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 15px;
        text-align: center;
        border: 1px solid #e9ecef;
    }

    .comparison-table th {
        background: #f8f9fa;
        font-weight: 600;
        color: var(--secondary-color);
    }

    .comparison-table .feature-name {
        text-align: left;
        font-weight: 600;
        background: #f8f9fa;
    }

    .comparison-table .checkmark {
        color: var(--success-color);
        font-size: 18px;
    }

    .comparison-table .xmark {
        color: var(--danger-color);
        font-size: 18px;
    }

    .comparison-table .limited {
        color: var(--warning-color);
        font-weight: 600;
    }

    /* Pricing Cards */
    .pricing-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
        margin-bottom: 40px;
    }

    .pricing-card {
        background: white;
        border-radius: var(--border-radius);
        overflow: hidden;
        box-shadow: var(--box-shadow);
        transition: var(--transition);
        position: relative;
        border: 2px solid transparent;
        display: flex;
        flex-direction: column;
    }

    .pricing-card:hover {
        transform: translateY(-10px);
        border-color: var(--primary-color);
    }

    .pricing-card.popular {
        border-color: var(--primary-color);
        transform: scale(1.05);
    }

    .pricing-card.popular:hover {
        transform: scale(1.05) translateY(-10px);
    }

    .popular-badge {
        position: absolute;
        top: 20px;
        right: -30px;
        background: var(--primary-color);
        color: white;
        padding: 5px 30px;
        font-size: 12px;
        font-weight: 600;
        transform: rotate(45deg);
        z-index: 10;
    }

    .save-percentage {
        position: absolute;
        top: 20px;
        left: -10px;
        background: var(--success-color);
        color: white;
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
        z-index: 10;
    }

    .save-percentage::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 15px;
        width: 10px;
        height: 10px;
        background: var(--success-color);
        transform: rotate(45deg);
    }

    .plan-header {
        padding: 30px;
        text-align: center;
        background: linear-gradient(135deg, rgba(138, 66, 255, 0.1), rgba(108, 99, 255, 0.1));
    }

    .plan-type {
        display: inline-block;
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 15px;
    }

    .badge-primary { background: rgba(138, 66, 255, 0.1); color: #8a42ff; }
    .badge-success { background: rgba(16, 185, 129, 0.1); color: #10b981; }
    .badge-warning { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
    .badge-danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
    .badge-info { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }

    .plan-name {
        font-size: 24px;
        font-weight: 700;
        color: var(--secondary-color);
        margin-bottom: 10px;
    }

    .plan-description {
        color: #6c757d;
        font-size: 14px;
        margin-bottom: 20px;
    }

    .plan-price {
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 5px;
        margin-bottom: 20px;
    }

    .currency {
        font-size: 20px;
        font-weight: 600;
        color: var(--secondary-color);
    }

    .amount {
        font-size: 48px;
        font-weight: 700;
        color: var(--primary-color);
        line-height: 1;
    }

    .period {
        font-size: 16px;
        color: #6c757d;
    }

    .plan-features {
        padding: 30px;
        flex: 1;
    }

    .features-list {
        list-style: none;
        padding: 0;
        margin: 0 0 30px 0;
    }

    .features-list li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
        border-bottom: 1px solid #f1f1f1;
    }

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

    .feature-icon {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .check-icon {
        color: var(--success-color);
    }

    .x-icon {
        color: var(--danger-color);
    }

    .limited-icon {
        color: var(--warning-color);
    }

    .plan-actions {
        padding: 0 30px 30px;
    }

    .subscribe-btn {
        width: 100%;
        padding: 15px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: var(--border-radius);
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        text-decoration: none;
    }

    .subscribe-btn:hover {
        background: var(--accent-color);
        transform: translateY(-2px);
        color: white;
        text-decoration: none;
    }

    .subscribe-btn.subscribed {
        background: var(--success-color);
        cursor: default;
    }

    .subscribe-btn.subscribed:hover {
        transform: none;
    }

    .social-platforms {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #f1f1f1;
    }

    .platforms-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--secondary-color);
        margin-bottom: 10px;
    }

    .platforms-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .platform-tag {
        padding: 5px 12px;
        background: rgba(138, 66, 255, 0.1);
        color: var(--primary-color);
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    /* Calculator Section */
    .calculator-section {
        background: white;
        border-radius: var(--border-radius);
        padding: 40px;
        margin-bottom: 40px;
        box-shadow: var(--box-shadow);
    }

    .calculator-header {
        text-align: center;
        margin-bottom: 30px;
    }

    .calculator-header h3 {
        color: var(--secondary-color);
        margin-bottom: 10px;
        font-size: 24px;
    }

    .calculator-header p {
        color: #6c757d;
        font-size: 16px;
    }

    .calculator-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }

    .calculator-input {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .calculator-input label {
        font-weight: 600;
        color: var(--secondary-color);
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .calculator-input .info {
        color: #6c757d;
        font-size: 12px;
    }

    .range-slider {
        width: 100%;
        height: 8px;
        -webkit-appearance: none;
        background: #e9ecef;
        border-radius: 4px;
        outline: none;
    }

    .range-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        background: var(--primary-color);
        border-radius: 50%;
        cursor: pointer;
        transition: var(--transition);
    }

    .range-slider::-webkit-slider-thumb:hover {
        transform: scale(1.2);
    }

    .range-value {
        font-weight: 600;
        color: var(--primary-color);
        font-size: 18px;
    }

    .calculator-result {
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        color: white;
        padding: 30px;
        border-radius: var(--border-radius);
        text-align: center;
    }

    .result-label {
        font-size: 14px;
        opacity: 0.9;
        margin-bottom: 10px;
    }

    .result-value {
        font-size: 36px;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .result-note {
        font-size: 14px;
        opacity: 0.8;
    }

    /* FAQ Section */
    .faq-section {
        margin-bottom: 40px;
    }

    .faq-header {
        text-align: center;
        margin-bottom: 40px;
    }

    .faq-header h3 {
        color: var(--secondary-color);
        margin-bottom: 10px;
        font-size: 24px;
    }

    .faq-header p {
        color: #6c757d;
        font-size: 16px;
    }

    .faq-accordion {
        max-width: 800px;
        margin: 0 auto;
    }

    .faq-item {
        background: white;
        border-radius: var(--border-radius);
        margin-bottom: 15px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .faq-question {
        padding: 20px;
        font-weight: 600;
        color: var(--secondary-color);
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: var(--transition);
    }

    .faq-question:hover {
        background: #f8f9fa;
    }

    .faq-answer {
        padding: 0 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        color: #6c757d;
        line-height: 1.6;
    }

    .faq-answer.active {
        padding: 0 20px 20px;
        max-height: 500px;
    }

    .faq-toggle {
        color: var(--primary-color);
        transition: var(--transition);
    }

    .faq-question.active .faq-toggle {
        transform: rotate(45deg);
    }

    /* CTA Section */
    .cta-section {
        text-align: center;
        padding: 60px 30px;
        background: <?= isset($cta['background_color']) && !empty($cta['background_color']) ? $cta['background_color'] : 'linear-gradient(135deg, #8a42ff, #6c63ff)' ?>;
        color: <?= isset($cta['text_color']) && !empty($cta['text_color']) ? $cta['text_color'] : '#ffffff' ?>;
        border-radius: var(--border-radius);
        margin-bottom: 40px;
    }

    .cta-content h2 {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .cta-content p {
        font-size: 18px;
        margin-bottom: 30px;
        opacity: 0.9;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-button {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 15px 40px;
        background: white;
        color: var(--primary-color);
        border: none;
        border-radius: var(--border-radius);
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        text-decoration: none;
    }

    .cta-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        color: var(--primary-color);
        text-decoration: none;
    }

    /* Badge */
    .badge {
        display: inline-block;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
    }

    .badge-primary {
        background: rgba(138, 66, 255, 0.1);
        color: var(--primary-color);
    }

    .badge-success {
        background: rgba(16, 185, 129, 0.1);
        color: var(--success-color);
    }

    /* Loading Spinner */
    .loading-spinner {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        border-top-color: white;
        animation: spin 1s ease-in-out infinite;
    }

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

    /* Notification */
    .notification {
        position: fixed;
        top: 100px;
        right: 30px;
        background: var(--success-color);
        color: white;
        padding: 15px 20px;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        z-index: 9999;
        animation: slideIn 0.3s ease;
    }

    @keyframes slideIn {
        from { transform: translateX(100%); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }

    @keyframes slideOut {
        from { transform: translateX(0); opacity: 1; }
        to { transform: translateX(100%); opacity: 0; }
    }

    /* Responsive */
    @media (max-width: 1200px) {
        .dashboard__wrapper {
            padding: 20px;
        }
        
        .pricing-card.popular {
            transform: scale(1);
        }
        
        .pricing-card.popular:hover {
            transform: translateY(-10px);
        }
        
        .pricing-grid {
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        }
    }

    @media (max-width: 992px) {
        .pricing-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 768px) {
        .dashboard__header {
            padding: 15px 20px;
        }
        
        .dashboard__wrapper {
            padding: 20px;
        }
        
        .page-header h1 {
            font-size: 28px;
        }
        
        .page-header p {
            font-size: 16px;
        }
        
        .plan-type-selector {
            flex-direction: column;
            align-items: center;
        }
        
        .plan-type-card {
            width: 100%;
            max-width: 300px;
        }
        
        .pricing-grid {
            grid-template-columns: 1fr;
        }
        
        .calculator-section {
            padding: 30px;
        }
        
        .calculator-grid {
            grid-template-columns: 1fr;
        }
        
        .cta-section {
            padding: 40px 20px;
        }
        
        .cta-content h2 {
            font-size: 28px;
        }
        
        .cta-content p {
            font-size: 16px;
        }
    }

    @media (max-width: 576px) {
        .dashboard__wrapper {
            padding: 15px;
        }
        
        .page-header h1 {
            font-size: 24px;
        }
        
        .billing-toggle {
            flex-direction: column;
            gap: 15px;
        }
        
        .features-header {
            flex-direction: column;
            align-items: flex-start;
        }
        
        .account-selector {
            width: 100%;
            justify-content: space-between;
        }
        
        .plan-header {
            padding: 25px;
        }
        
        .plan-features {
            padding: 25px;
        }
        
        .plan-actions {
            padding: 0 25px 25px;
        }
        
        .amount {
            font-size: 36px;
        }
    }

