/* Generated page-level CSS migrated out of PHP templates. */

/* admin/addons.php :: block 1 */
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; }
    .addon-card {
        background: white;
        border-radius: 24px;
        padding: 25px;
        border: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 10px 30px rgba(0,0,0,0.02);
        display: flex;
        flex-direction: column;
        transition: 0.3s;
    }
    .addon-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
    
    .status-tag {
        font-size: 10px;
        font-weight: 800;
        padding: 4px 10px;
        border-radius: 100px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .status-owned { background: #ecfdf5; color: #059669; }
    .status-premium { background: #fff1f2; color: #e11d48; }
    
    .btn-market {
        width: 100%;
        height: 48px;
        border-radius: 12px;
        font-weight: 700;
        font-size: 13px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        text-decoration: none;
        transition: 0.2s;
        border: none;
        cursor: pointer;
    }
    .btn-owned { background: #0f172a; color: white; }
    .btn-buy { background: var(--primary-color); color: var(--text-main); }
    .btn-disabled { background: #f1f5f9; color: #94a3b8; cursor: not-allowed; }

/* admin/announcements.php :: block 1 */
.type-radio {
        cursor: pointer;
    }

    .type-radio input {
        display: none;
    }

    .type-btn {
        display: block;
        padding: 10px;
        border-radius: 10px;
        text-align: center;
        font-size: 12px;
        font-weight: 800;
        border: 2px solid transparent;
        transition: 0.2s;
        background: #f8fafc;
        color: #64748b;
    }

    .type-radio input:checked+.type-btn.info {
        background: #e0f2fe;
        color: #0369a1;
        border-color: #0ea5e9;
    }

    .type-radio input:checked+.type-btn.success {
        background: #dcfce7;
        color: #166534;
        border-color: #22c55e;
    }

    .type-radio input:checked+.type-btn.warning {
        background: #fef3c7;
        color: #92400e;
        border-color: #f59e0b;
    }

    .type-radio input:checked+.type-btn.danger {
        background: #fee2e2;
        color: #991b1b;
        border-color: #ef4444;
    }

    /* Switch Styles */
    .switch {
        position: relative;
        display: inline-block;
        width: 44px;
        height: 24px;
    }

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

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

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

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

    input:checked+.slider:before {
        transform: translateX(20px);
    }

/* admin/coupons.php :: block 1 */
.switch input:checked+.slider {
        background-color: #00d084;
    }

    .switch input:focus+.slider {
        box-shadow: 0 0 1px #00d084;
    }

    .switch input:checked+.slider:before {
        transform: translateX(24px);
    }

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

/* admin/dashboard.php :: block 1 */
.ops-shell {
        display: grid;
        gap: 24px;
        padding-bottom: 32px;
    }

    .ops-hero {
        display: grid;
        grid-template-columns: 1.25fr 0.95fr;
        gap: 24px;
    }

    .ops-panel {
        background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.96));
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 28px;
        padding: 24px;
        box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    }

    .ops-dark {
        background:
            radial-gradient(circle at top right, rgba(197, 249, 73, 0.16), transparent 24%),
            linear-gradient(160deg, #0f172a 0%, #111827 100%);
        color: #f8fafc;
    }

    .ops-hero h1 {
        margin: 0 0 12px;
        font: 900 38px/0.98 'Outfit', sans-serif;
        letter-spacing: -0.05em;
    }

    .ops-hero p {
        margin: 0;
        color: var(--text-muted);
        line-height: 1.7;
        max-width: 720px;
    }

    .ops-dark p {
        color: rgba(255,255,255,0.72);
    }

    .ops-actions {
        margin-top: 24px;
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }

    .ops-btn {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 14px 18px;
        border-radius: 16px;
        text-decoration: none;
        font-weight: 800;
        font-size: 13px;
    }

    .ops-btn-primary {
        background: var(--primary-color);
        color: #08111f;
    }

    .ops-btn-muted {
        background: rgba(15, 23, 42, 0.06);
        color: var(--text-main);
    }

    .ops-dark .ops-btn-muted {
        background: rgba(255,255,255,0.08);
        color: #fff;
    }

    .status-stack {
        display: grid;
        gap: 12px;
    }

    .status-card {
        padding: 16px 18px;
        border-radius: 20px;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.08);
    }

    .status-card strong {
        display: block;
        margin-bottom: 6px;
        font-size: 13px;
    }

    .status-card span {
        font-size: 13px;
        color: rgba(255,255,255,0.72);
        line-height: 1.6;
    }

    .metric-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }

    .metric-card {
        background: #fff;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 24px;
        padding: 22px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
    }

    .metric-card .label {
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.12em;
        font-size: 11px;
        font-weight: 800;
    }

    .metric-card .value {
        margin: 12px 0 6px;
        font-size: 34px;
        font-weight: 900;
        letter-spacing: -0.04em;
        color: var(--text-main);
    }

    .metric-card .meta {
        color: var(--text-muted);
        font-size: 12px;
    }

    .content-grid {
        display: grid;
        grid-template-columns: 1.3fr 0.95fr;
        gap: 24px;
    }

    .panel-stack {
        display: grid;
        gap: 24px;
    }

    .section-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        margin-bottom: 18px;
    }

    .section-head h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 850;
        color: var(--text-main);
    }

    .section-head span,
    .section-head a {
        color: var(--text-muted);
        font-size: 12px;
        text-decoration: none;
    }

    .table {
        width: 100%;
        border-collapse: collapse;
    }

    .table th,
    .table td {
        padding: 14px 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        text-align: left;
        font-size: 13px;
    }

    .table th {
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-size: 11px;
    }

    .list-stack {
        display: grid;
        gap: 12px;
    }

    .list-row {
        padding: 15px 16px;
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.03);
        border: 1px solid rgba(15, 23, 42, 0.06);
    }

    .list-row strong {
        display: block;
        font-size: 13px;
        margin-bottom: 6px;
        color: var(--text-main);
    }

    .muted {
        color: var(--text-muted);
        font-size: 12px;
        line-height: 1.6;
    }

    .badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 10px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .ok { background: rgba(34,197,94,0.10); color: #15803d; }
    .warn { background: rgba(245,158,11,0.12); color: #b45309; }
    .bad { background: rgba(239,68,68,0.10); color: #b91c1c; }

    @media (max-width: 1280px) {
        .ops-hero, .content-grid { grid-template-columns: 1fr; }
        .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

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

/* admin/email_campaigns.php :: block 1 */
@keyframes spin { to { transform: rotate(360deg); } }

/* admin/memberships.php :: block 1 */
.stat-mini {
        background: white;
        padding: 10px 20px;
        border-radius: 12px;
        text-align: center;
        box-shadow: var(--shadow);
        min-width: 100px;
    }

    .stat-mini.warning {
        border-left: 4px solid #f59e0b;
    }

    .stat-mini .label {
        display: block;
        font-size: 10px;
        font-weight: 800;
        color: #94a3b8;
    }

    .stat-mini .value {
        font-size: 18px;
        font-weight: 900;
        color: #0f172a;
    }

    .membership-card-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }

    .m-card {
        background: white;
        border-radius: 20px;
        padding: 20px;
        box-shadow: var(--shadow);
        border: 1px solid #f1f5f9;
        transition: 0.3s;
    }

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

    .m-card.warning {
        border-left: 5px solid #f59e0b;
    }

    .m-card.expired {
        border-left: 5px solid #ef4444;
        opacity: 0.8;
    }

    .m-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 20px;
    }

    .user-info {
        display: flex;
        gap: 12px;
        align-items: center;
    }

    .avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 900;
        color: #64748b;
    }

    .user-info h4 {
        margin: 0;
        font-size: 14px;
        font-weight: 800;
    }

    .user-info p {
        margin: 0;
        font-size: 11px;
        color: #94a3b8;
        font-weight: 600;
    }

    .m-badge {
        padding: 4px 10px;
        border-radius: 8px;
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .m-badge.product {
        background: #eff6ff;
        color: #3b82f6;
    }

    .m-badge.bundle {
        background: #f5f3ff;
        color: #8b5cf6;
    }

    .resource-name {
        font-weight: 900;
        font-size: 16px;
        color: #0f172a;
        margin-bottom: 15px;
    }

    .m-stats {
        display: flex;
        gap: 20px;
        background: #f8fafc;
        padding: 12px;
        border-radius: 12px;
        margin-bottom: 15px;
    }

    .m-stat .label {
        display: block;
        font-size: 9px;
        font-weight: 800;
        color: #94a3b8;
    }

    .m-stat .value {
        font-size: 11px;
        font-weight: 800;
        color: #0f172a;
    }

    .m-card-footer {
        border-top: 1px solid #f1f5f9;
        pt: 15px;
        margin-top: 15px;
        display: flex;
    }

    .mini-select {
        flex: 1;
        padding: 8px;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        font-size: 12px;
        font-weight: 700;
    }

    .btn-mini-action {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        cursor: pointer;
        transition: 0.3s;
    }

    .btn-mini-action.extend {
        background: #10b981;
        color: white;
    }

    .btn-mini-action.revoke {
        background: #fee2e2;
        color: #ef4444;
    }

    .btn-mini-action.view {
        background: #f1f5f9;
        color: #64748b;
    }

    .btn-mini-action:hover {
        opacity: 0.8;
        transform: scale(1.1);
    }

/* admin/orders.php :: block 1 */
.dropdown-parent:hover .quick-actions {
        display: block !important;
    }

    .line-item-row {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px;
        background: #fbfcfe;
        border-radius: 16px;
        border: 1px solid #f1f5f9;
        margin-bottom: 12px;
    }

/* admin/user_details.php :: block 1 */
.modal-input {
        width: 100%;
        padding: 14px 18px 14px 48px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        font-size: 14px;
        font-weight: 600;
        color: #1e293b;
        outline: none;
        transition: all 0.3s ease;
    }

    .modal-input:focus {
        background: white;
        border-color: var(--primary-color);
        box-shadow: 0 10px 25px rgba(112, 94, 200, 0.1);
    }

    .modal-field {
        margin-bottom: 15px;
    }

    .modal-label {
        display: block;
        font-weight: 700;
        font-size: 13px;
        color: #475569;
        margin-bottom: 8px;
    }

    .modal-input-group {
        position: relative;
        display: flex;
        align-items: center;
    }

    .modal-input-group i {
        position: absolute;
        left: 18px;
        color: #94a3b8;
        transition: 0.3s;
    }

    .modal-input:focus+i {
        color: var(--primary-color);
    }

    .form-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .modal-section-title {
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #94a3b8;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .modal-section-title::after {
        content: '';
        flex-grow: 1;
        height: 1px;
        background: #f1f5f9;
    }

    .btn-icon-lite {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: #f8fafc;
        color: #64748b;
        cursor: pointer;
        transition: 0.3s;
    }

    .btn-icon-lite:hover {
        background: #f1f5f9;
        color: var(--primary-color);
        transform: translateY(-2px);
    }

/* admin/users.php :: block 1 */
@keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

/* user/affiliate.php :: block 1 */
.stat-card {
        position: relative;
        overflow: hidden;
    }

    .stat-card i {
        position: absolute;
        right: 15px;
        bottom: 15px;
        font-size: 24px;
        opacity: 0.15;
    }

/* user/dashboard.php :: block 1 */
@keyframes shine {
                0% { left: -100%; top: 0; }
                20% { left: 100%; top: 0; }
                100% { left: 100%; top: 0; }
            }

/* user/dashboard.php :: block 2 */
/* Simple Switch CSS */
                        .switch { position: relative; display: inline-block; width: 34px; height: 18px; }
                        .switch input { opacity: 0; width: 0; height: 0; }
                        .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
                        .slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 2px; bottom: 2px; background-color: white; transition: .4s; border-radius: 50%; }
                        input:checked + .slider { background-color: #00d084; }
                        input:checked + .slider:before { transform: translateX(16px); }

