/* ============================================
   TRADING SAAS — WHITE + BLACK + BLUE THEME
   ============================================ */

/* ─── ROOT VARIABLES ─── */
:root {
    --primary: #F59E0B;
    --primary-hover: #D97706;
    --primary-light: #FFFBEB;
    --black: #1E293B;
    --gray: #64748B;
    --light-gray: #F8FAFC;
    --border: #E2E8F0;
    --white: #FFFFFF;
    --success: #22C55E;
    --success-light: #F0FDF4;
    --danger: #EF4444;
    --danger-light: #FEF2F2;
    --warning: #F97316;
    --warning-light: #FFF7ED;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
    --radius: 10px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.2s ease;
}

/* ─── GLOBAL ─── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--black);
    background-color: var(--light-gray);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* ─── BUTTONS ─── */
.btn-primary-custom {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary-custom:hover {
    background: var(--primary-hover);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-outline-custom {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-outline-custom:hover {
    background: var(--light-gray);
    border-color: var(--gray);
    color: var(--black);
}

.btn-success-custom {
    background: var(--success);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    cursor: pointer;
}

.btn-success-custom:hover {
    background: #16A34A;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-danger-custom {
    background: var(--danger);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    cursor: pointer;
}

.btn-danger-custom:hover {
    background: #DC2626;
    color: var(--white);
}

/* ─── CARDS ─── */
.card-custom {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.card-custom:hover {
    box-shadow: var(--shadow-md);
}

/* ─── STAT CARDS ─── */
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-card .stat-icon.blue {
    background: var(--primary-light);
    color: var(--primary);
}

.stat-card .stat-icon.green {
    background: var(--success-light);
    color: var(--success);
}

.stat-card .stat-icon.orange {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-card .stat-icon.red {
    background: var(--danger-light);
    color: var(--danger);
}

.stat-card .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.2;
    margin-top: 12px;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
    margin-top: 4px;
}

/* ─── FORMS ─── */
.form-control-custom {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    width: 100%;
    background: var(--white);
    color: var(--black);
}

.form-control-custom:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-control-custom::placeholder {
    color: #94A3B8;
}

.form-label-custom {
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 6px;
    display: block;
}

/* ─── SIDEBAR ─── */
.sidebar {
    width: 260px;
    background: var(--white);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    border-right: 1px solid var(--border);
    transition: var(--transition);
}

.sidebar .sidebar-brand {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.sidebar .sidebar-brand h4 {
    color: var(--black);
    font-weight: 700;
    font-size: 20px;
    margin: 0;
}

.sidebar .sidebar-brand span {
    color: var(--primary);
}

.sidebar .sidebar-menu {
    padding: 16px 12px;
    list-style: none;
}

.sidebar .sidebar-menu li {
    margin-bottom: 2px;
}

.sidebar .sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--gray);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar .sidebar-menu a:hover {
    background: var(--light-gray);
    color: var(--black);
}

.sidebar .sidebar-menu a.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.sidebar .sidebar-menu a i {
    font-size: 18px;
    width: 22px;
    text-align: center;
}

/* ─── MAIN CONTENT ─── */
.main-content {
    margin-left: 260px;
    padding: 0;
    min-height: 100vh;
    background: var(--light-gray);
}

/* ─── TOP NAVBAR ─── */
.top-navbar {
    background: var(--white);
    padding: 14px 30px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-navbar .page-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
}

.top-navbar .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-navbar .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.top-navbar .user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
}

/* ─── CONTENT AREA ─── */
.content-area {
    padding: 30px;
}

/* ─── TABLES ─── */
.table-custom {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.table-custom table {
    margin-bottom: 0;
}

.table-custom thead th {
    background: var(--light-gray);
    color: var(--gray);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.table-custom tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--black);
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

.table-custom tbody tr:hover {
    background: var(--light-gray);
}

.table-custom tbody tr:last-child td {
    border-bottom: none;
}

/* ─── BADGES ─── */
.badge-active {
    background: var(--success-light);
    color: var(--success);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-expired {
    background: var(--danger-light);
    color: var(--danger);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-pending {
    background: var(--warning-light);
    color: var(--warning);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ─── CONNECTION CARDS ─── */
.connection-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.connection-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.connection-card .platform-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 14px;
}

.connection-card .platform-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--black);
    margin-bottom: 6px;
}

.connection-card .platform-status {
    font-size: 13px;
    margin-bottom: 16px;
}

/* ─── ALERTS ─── */
.alert-custom {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    border: none;
}

/* ─── AUTH PAGES ─── */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    padding: 20px;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.auth-card .auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card .auth-logo h2 {
    font-weight: 800;
    color: var(--black);
    font-size: 24px;
}

.auth-card .auth-logo h2 span {
    color: var(--primary);
}

.auth-card .auth-title {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card .auth-title h3 {
    font-weight: 700;
    font-size: 20px;
    color: var(--black);
    margin-bottom: 6px;
}

.auth-card .auth-title p {
    color: var(--gray);
    font-size: 14px;
    margin: 0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }

    .sidebar.show {
        width: 260px;
        box-shadow: var(--shadow-lg);
    }

    .main-content {
        margin-left: 0;
    }

    .content-area {
        padding: 16px;
    }

    .top-navbar {
        padding: 12px 16px;
    }

    .auth-card {
        padding: 28px 20px;
    }
}

/* ============================================
   PLANS & PRICING PAGE
   ============================================ */

/* ─── PLAN CARDS ─── */
.plan-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.plan-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transform: translateY(-4px);
}

.plan-card:hover::before {
    transform: scaleX(1);
}

.plan-card.plan-inactive {
    opacity: 0.55;
}

.plan-card.plan-inactive:hover {
    opacity: 0.8;
}

/* ─── PLAN DURATION BADGE ─── */
.plan-duration-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

/* ─── PLAN NAME ─── */
.plan-name {
    font-weight: 700;
    font-size: 18px;
    color: var(--black);
    margin-bottom: 6px;
}

/* ─── PLAN DESCRIPTION ─── */
.plan-description {
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── PLAN PRICE ─── */
.plan-price-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--black);
    letter-spacing: -1px;
    line-height: 1;
}

.plan-period {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

/* ─── PLAN DETAILS ─── */
.plan-details {
    flex: 1;
    margin-bottom: 20px;
}

.plan-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
    border-bottom: 1px dashed var(--border);
    transition: color 0.2s ease;
}

.plan-detail-item:last-child {
    border-bottom: none;
}

.plan-detail-item i {
    color: var(--primary);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.plan-card:hover .plan-detail-item {
    color: var(--black);
}

/* ─── PLAN ACTIONS ─── */
.plan-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.btn-plan-action {
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--white);
    color: var(--gray);
    text-decoration: none;
}

.btn-plan-action:hover {
    background: var(--light-gray);
    transform: translateY(-1px);
}

.btn-plan-action.edit:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}

.btn-plan-action.activate:hover {
    color: var(--success);
    border-color: var(--success);
    background: var(--success-light);
}

.btn-plan-action.deactivate:hover {
    color: var(--warning);
    border-color: var(--warning);
    background: var(--warning-light);
}

.btn-plan-action.delete:hover {
    color: var(--danger);
    border-color: var(--danger);
    background: var(--danger-light);
}

/* ─── EMPTY STATE ─── */
.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
    animation: pulse 2s ease-in-out infinite;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(245, 158, 11, 0);
    }
}

/* ─── PLANS RESPONSIVE ─── */
@media (max-width: 768px) {
    .plan-price {
        font-size: 26px;
    }

    .plan-card {
        padding: 20px;
    }

    .plan-actions {
        gap: 6px;
    }

    .btn-plan-action {
        padding: 6px 10px;
        font-size: 12px;
    }
}


/* ============================================
   CREATE / EDIT PLAN PAGE
   ============================================ */

/* ─── BACK BUTTON ─── */
.back-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 18px;
    transition: all 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.back-btn:hover {
    background: var(--light-gray);
    color: var(--black);
    border-color: var(--black);
    transform: translateX(-2px);
}

/* ─── INPUT ERROR STYLES ─── */
.input-error {
    border-color: var(--danger) !important;
}

.input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.input-error-msg {
    color: var(--danger);
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
}

/* ─── INPUT HINT ─── */
.input-hint {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 10px;
    margin-top: -2px;
}

/* ─── INPUT WITH ICON ─── */
.input-icon-wrapper {
    position: relative;
}

.input-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 15px;
    font-weight: 600;
}

.input-with-icon {
    padding-left: 32px !important;
}

/* ─── PLATFORM LIMIT SELECTOR ─── */
.platform-limit-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.platform-limit-option {
    cursor: pointer;
    margin: 0;
}

.platform-limit-option input[type="radio"] {
    display: none;
}

.platform-limit-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 68px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: all 0.2s ease;
}

.platform-limit-box strong {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    line-height: 1;
}

.platform-limit-box small {
    font-size: 10px;
    color: var(--gray);
    font-weight: 500;
    margin-top: 2px;
}

.platform-limit-option input[type="radio"]:checked + .platform-limit-box {
    border-color: var(--primary);
    background: var(--primary-light);
}

.platform-limit-option input[type="radio"]:checked + .platform-limit-box strong {
    color: var(--primary);
}

.platform-limit-box:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ─── TOGGLE SWITCH ─── */
.toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.toggle-info {
    flex: 1;
}

.toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 2px;
}

.toggle-hint {
    font-size: 12px;
    color: var(--gray);
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 26px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--white);
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* ─── LIVE PREVIEW CARD ─── */
.preview-plan-card {
    background: var(--light-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.3s ease;
}

.preview-plan-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.preview-plan-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.preview-plan-desc {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.preview-plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.preview-price-amount {
    font-size: 30px;
    font-weight: 800;
    color: var(--black);
    letter-spacing: -1px;
    transition: all 0.3s ease;
}

.preview-price-period {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
    transition: all 0.3s ease;
}

.preview-plan-features {
    margin-bottom: 20px;
}

.preview-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

.preview-feature i {
    color: var(--success);
    font-size: 15px;
}

.preview-plan-btn {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

/* ─── CREATE/EDIT PLAN RESPONSIVE ─── */
@media (max-width: 768px) {
    .platform-limit-box {
        width: 60px;
        height: 56px;
    }

    .platform-limit-box strong {
        font-size: 17px;
    }

    .preview-price-amount {
        font-size: 26px;
    }

    .toggle-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}


/* ============================================
   EDIT PLAN — PLAN INFO BOX
   ============================================ */

.plan-info-box {
    margin-top: 20px;
    padding: 16px;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.plan-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}

.plan-info-item:last-child {
    border-bottom: none;
}

.plan-info-label {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

.plan-info-value {
    font-size: 13px;
    color: var(--black);
    font-weight: 600;
}


/* ============================================
   CONNECTIONS PAGE
   ============================================ */

/* ─── SECTION LABELS ─── */
.section-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--black);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.section-label i {
    color: var(--primary);
}

.section-hint {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 16px;
}

/* ─── CONNECTION CARD UPDATES ─── */
.connection-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.connection-card .platform-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 14px;
    transition: transform 0.3s ease;
}

.connection-card:hover .platform-icon {
    transform: scale(1.1);
}

.connection-card .platform-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--black);
    margin-bottom: 8px;
}

.connection-card .platform-status {
    margin-bottom: 16px;
}

/* ─── CONNECTION INFO ─── */
.connection-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
    width: 100%;
}

.connection-info small {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ─── CONNECTION BUTTONS ─── */
.btn-connection {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    text-decoration: none;
    text-align: center;
}

.btn-connection:hover {
    background: var(--primary-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-connection-danger {
    background: var(--white);
    color: var(--danger);
    border: 1px solid var(--danger);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-connection-danger:hover {
    background: var(--danger);
    color: var(--white);
}

/* ─── CONNECTION CARD FORM ─── */
.connection-card form {
    width: 100%;
    margin-top: auto;
}

.connection-card .form-control-custom {
    font-size: 13px;
    padding: 9px 12px;
}

/* ─── CONNECTIONS RESPONSIVE ─── */
@media (max-width: 768px) {
    .connection-card {
        padding: 20px;
    }

    .connection-card .platform-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
}

/* ─── REAL PLATFORM ICONS ─── */
.platform-icon-real {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    transition: transform 0.3s ease;
}

.connection-card:hover .platform-icon-real {
    transform: scale(1.15) rotate(5deg);
}

/* ─── PLATFORM AUTO TAG ─── */
.platform-auto-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--success);
    background: var(--success-light);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
}

.platform-auto-tag.tag-link {
    color: var(--gray);
    background: var(--light-gray);
    border: 1px solid var(--border);
}

/* ─── COMING SOON BUTTON ─── */
.btn-coming-soon {
    background: var(--light-gray) !important;
    color: var(--gray) !important;
    border: 1px dashed var(--border) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.btn-coming-soon:hover {
    transform: none !important;
    box-shadow: none !important;
}


/* ============================================
   TELEGRAM CONNECT PAGE — SETUP WIZARD
   ============================================ */

/* ─── SETUP STEP CARDS ─── */
.setup-step-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.setup-step-card:nth-child(2) {
    animation-delay: 0.15s;
}

.setup-step-card.step-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-md);
}

.setup-step-card.step-completed {
    border-color: var(--success);
}

.setup-step-card.step-locked {
    opacity: 0.5;
    pointer-events: none;
}

/* ─── STEP HEADER ─── */
.setup-step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--light-gray);
    border-bottom: 1px solid var(--border);
}

.setup-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--gray);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.setup-step-number.completed {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.step-active .setup-step-number:not(.completed) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.setup-step-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--black);
    margin-bottom: 2px;
}

.setup-step-desc {
    font-size: 13px;
    color: var(--gray);
    margin: 0;
}

/* ─── STEP BODY ─── */
.setup-step-body {
    padding: 24px;
}

/* ─── GUIDE BOX ─── */
.guide-box {
    background: var(--light-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 20px;
}

.guide-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--black);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.guide-title i {
    color: var(--primary);
}

/* ─── GUIDE STEPS ─── */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.guide-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.guide-step-text {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
}

.guide-step-text strong {
    color: var(--black);
}

.guide-step-text code {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

/* ─── TOKEN INPUT ─── */
.token-input-wrapper {
    margin-top: 4px;
}

/* ─── CONNECTED BOX ─── */
.connected-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--success-light);
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
}

.connected-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.connected-details {
    flex: 1;
}

.connected-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--black);
}

.connected-username {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

/* ─── DISCONNECT BUTTON ─── */
.btn-disconnect {
    background: none;
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.btn-disconnect:hover {
    background: var(--danger);
    color: var(--white);
}

/* ─── TELEGRAM STATUS SIDEBAR ─── */
.tg-status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.tg-status-item:last-of-type {
    border-bottom: none;
}

.tg-status-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.tg-status-icon.done {
    background: var(--success-light);
    color: var(--success);
}

.tg-status-icon.pending {
    background: var(--warning-light);
    color: var(--warning);
}

.tg-status-info {
    flex: 1;
}

.tg-status-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
}

.tg-status-value {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
}

/* ─── OVERALL STATUS ─── */
.tg-overall-status {
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tg-overall-status.ready {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid #bbf7d0;
}

.tg-overall-status.not-ready {
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid #fed7aa;
}

/* ─── HELP BOX ─── */
.tg-help-box {
    margin-top: 20px;
    padding: 16px;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.tg-help-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.tg-help-title i {
    color: var(--primary);
}

.tg-help-box p {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 8px;
    line-height: 1.5;
}

.tg-help-box ul {
    margin: 0;
    padding-left: 18px;
}

.tg-help-box li {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 4px;
    line-height: 1.5;
}

/* ─── TELEGRAM PAGE RESPONSIVE ─── */
@media (max-width: 768px) {
    .setup-step-header {
        padding: 16px;
    }

    .setup-step-body {
        padding: 16px;
    }

    .guide-box {
        padding: 14px;
    }

    .connected-box {
        flex-direction: column;
        text-align: center;
    }

    .token-input-wrapper .d-flex {
        flex-direction: column;
    }
}


/* ============================================
   PAYMENT SETTINGS PAGE
   ============================================ */

/* ─── PAYMENT METHOD CARD ─── */
.payment-method-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.payment-method-card:nth-child(2) { animation-delay: 0.1s; }
.payment-method-card:nth-child(3) { animation-delay: 0.2s; }
.payment-method-card:nth-child(4) { animation-delay: 0.3s; }

.payment-method-card:hover {
    box-shadow: var(--shadow-md);
}

/* ─── PAYMENT METHOD HEADER ─── */
.payment-method-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: var(--light-gray);
    border-bottom: 1px solid var(--border);
}

.payment-method-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-method-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--black);
    margin-bottom: 2px;
}

.payment-method-desc {
    font-size: 13px;
    color: var(--gray);
    margin: 0;
}

/* ─── PAYMENT METHOD BODY ─── */
.payment-method-body {
    padding: 24px;
}

/* ─── QR PREVIEW ─── */
.qr-preview-box {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qr-preview-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    display: block;
}

.qr-remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--danger);
    color: var(--white);
    border: none;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.qr-remove-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ─── PAYMENT STATUS SIDEBAR ─── */
.payment-status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.payment-status-item:last-of-type {
    border-bottom: none;
}

.payment-status-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--light-gray);
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.payment-status-icon.active {
    background: var(--success-light);
    color: var(--success);
}

.payment-status-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payment-status-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
}

.payment-status-state {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
}

/* ─── PAYMENT SETTINGS RESPONSIVE ─── */
@media (max-width: 768px) {
    .payment-method-header {
        padding: 16px;
        flex-wrap: wrap;
    }

    .payment-method-body {
        padding: 16px;
    }

    .qr-preview-img {
        width: 110px;
        height: 110px;
    }
}


/* ============================================
   MEMBERS PAGE
   ============================================ */

/* ─── FILTER BAR ─── */
.members-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-tab:hover {
    background: var(--light-gray);
    color: var(--black);
}

.filter-tab.active {
    background: var(--primary-light);
    color: var(--primary);
}

.filter-count {
    background: var(--border);
    color: var(--gray);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.filter-tab.active .filter-count {
    background: var(--primary);
    color: var(--white);
}

/* ─── SEARCH BOX ─── */
.search-box {
    position: relative;
    min-width: 220px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 14px;
}

.search-input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: var(--black);
    background: var(--white);
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

/* ─── MEMBER AVATAR ─── */
.member-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.member-avatar-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 28px;
    margin: 0 auto 16px;
}

/* ─── MEMBER TABLE INFO ─── */
.member-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--black);
}

.member-source {
    font-size: 12px;
    color: var(--gray);
}

.member-contact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.member-contact small {
    font-size: 12px;
    color: var(--gray);
    display: flex;
    align-items: center;
}

/* ─── PLATFORM BADGES ─── */
.member-platforms {
    display: flex;
    gap: 6px;
}

.platform-badge {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.platform-badge:hover {
    transform: scale(1.15);
}

.platform-badge.tg {
    background: #E3F2FD;
    color: #0088cc;
}

.platform-badge.dc {
    background: #EDE7F6;
    color: #5865F2;
}

/* ─── TABLE ACTION BUTTONS ─── */
.btn-table-action {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-table-action:hover {
    background: var(--light-gray);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-table-action.danger:hover {
    color: var(--danger);
    border-color: var(--danger);
    background: var(--danger-light);
}

.btn-table-action.success:hover {
    color: var(--success);
    border-color: var(--success);
    background: var(--success-light);
}

/* ─── MEMBER DETAIL PAGE ─── */
.member-detail-list {
    margin-top: 20px;
    text-align: left;
}

.member-detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--gray);
}

.member-detail-row:last-child {
    border-bottom: none;
}

.member-detail-row i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: var(--gray);
}

/* ─── SUBSCRIPTION ROW ─── */
.subscription-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1px solid var(--border);
}

.subscription-plan {
    font-weight: 600;
    font-size: 14px;
    color: var(--black);
}

.subscription-dates {
    font-size: 12px;
    color: var(--gray);
    margin-top: 2px;
}

/* ─── PAGINATION ─── */
.pagination-wrapper {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.pagination-wrapper .pagination {
    gap: 4px;
}

.pagination-wrapper .page-link {
    border: 1px solid var(--border);
    color: var(--gray);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    transition: all 0.2s ease;
}

.pagination-wrapper .page-link:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.pagination-wrapper .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ─── MEMBERS RESPONSIVE ─── */
@media (max-width: 768px) {
    .members-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .search-box {
        min-width: 100%;
    }

    .member-avatar-lg {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .subscription-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


/* ============================================
   DASHBOARD — FUNCTIONAL STYLES
   ============================================ */

/* ─── CHECKLIST PROGRESS ─── */
.checklist-progress {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 20px;
}

.checklist-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
}

.checklist-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    border-radius: 6px;
    transition: width 0.6s ease;
}

/* ─── CHECKLIST ITEMS ─── */
.checklist-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    margin-bottom: 6px;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.checklist-item:hover {
    border-color: var(--primary);
    background: var(--white);
    transform: translateX(4px);
    color: inherit;
}

.checklist-item.completed {
    background: var(--success-light);
    border-color: #bbf7d0;
}

.checklist-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.checklist-icon.done {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.checklist-info {
    flex: 1;
}

.checklist-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--black);
}

.checklist-desc {
    font-size: 12px;
    color: var(--gray);
}

.checklist-arrow {
    color: var(--gray);
    font-size: 14px;
    transition: transform 0.2s ease;
}

.checklist-item:hover .checklist-arrow {
    transform: translateX(4px);
    color: var(--primary);
}

/* ─── ACTIVITY LIST ─── */
.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:nth-child(1) { animation-delay: 0s; }
.activity-item:nth-child(2) { animation-delay: 0.05s; }
.activity-item:nth-child(3) { animation-delay: 0.1s; }
.activity-item:nth-child(4) { animation-delay: 0.15s; }
.activity-item:nth-child(5) { animation-delay: 0.2s; }

.activity-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.activity-icon.blue {
    background: var(--primary-light);
    color: var(--primary);
}

.activity-icon.green {
    background: var(--success-light);
    color: var(--success);
}

.activity-icon.orange {
    background: var(--warning-light);
    color: var(--warning);
}

.activity-icon.red {
    background: var(--danger-light);
    color: var(--danger);
}

.activity-info {
    flex: 1;
}

.activity-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
}

.activity-detail {
    font-size: 11px;
    color: var(--gray);
}

.activity-time {
    font-size: 11px;
    color: var(--gray);
    font-weight: 500;
    white-space: nowrap;
}

/* ─── DASHBOARD RESPONSIVE ─── */
@media (max-width: 768px) {
    .checklist-item {
        padding: 12px;
    }

    .checklist-arrow {
        display: none;
    }

    .activity-time {
        font-size: 10px;
    }
}

/* ─── PENDING PAYMENTS ─── */
.pending-payment-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.3s ease; }
.pending-payment-card:hover { box-shadow: var(--shadow-md); }
.pending-payment-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--light-gray); border-bottom: 1px solid var(--border); }
.pending-payment-body { padding: 20px; }
.pending-payment-info { display: flex; flex-direction: column; gap: 8px; }
.payment-info-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.payment-info-label { color: var(--gray); font-weight: 500; }
.payment-info-value { color: var(--black); font-weight: 600; }
.pending-payment-actions { display: flex; gap: 8px; padding: 16px 20px; border-top: 1px solid var(--border); background: var(--light-gray); }
.btn-approve-payment { width: 100%; padding: 10px; background: var(--success); color: var(--white); border: none; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; font-family: 'Inter', sans-serif; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; }
.btn-approve-payment:hover { background: #15803d; transform: translateY(-1px); }
.btn-reject-payment { width: 100%; padding: 10px; background: var(--white); color: var(--danger); border: 1px solid var(--danger); border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; font-family: 'Inter', sans-serif; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; }
.btn-reject-payment:hover { background: var(--danger); color: var(--white); }
.badge-pending { background: #fef3c7; color: #92400e; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }

/* ─── SIDEBAR BADGE ─── */
.sidebar-badge { background: var(--danger); color: var(--white); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-left: auto; min-width: 20px; text-align: center; line-height: 16px; animation: badgePulse 2s ease infinite; }
@keyframes badgePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* ─── SCREENSHOT IN PENDING CARD ─── */
.screenshot-container { margin-bottom: 16px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: var(--light-gray); }
.screenshot-container img { width: 100%; max-height: 220px; object-fit: cover; display: block; cursor: pointer; transition: transform 0.2s ease; }
.screenshot-container img:hover { transform: scale(1.02); }
.screenshot-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100px; color: var(--gray); font-size: 13px; }
.screenshot-placeholder i { font-size: 32px; margin-bottom: 6px; }

/* ─── SCREENSHOT MODAL ─── */
.screenshot-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 9999; align-items: center; justify-content: center; cursor: pointer; }
.screenshot-modal.active { display: flex; }
.screenshot-modal img { max-width: 90%; max-height: 90%; border-radius: var(--radius); object-fit: contain; }

/* ============================================
   BOT SETTINGS PAGE
   ============================================ */

/* ——— WARNING BANNER ——— */
.bot-warning-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border: 1px solid #FED7AA;
    border-left: 4px solid #F97316;
    border-radius: var(--radius);
    padding: 16px 24px;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.5s ease forwards;
}

.bot-warning-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #FFF7ED;
    color: #F97316;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* ——— TIMELINE LAYOUT ——— */
.bot-msg-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 100px;
}

.bot-msg-step {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.bot-msg-step:nth-child(1) { animation-delay: 0s; }
.bot-msg-step:nth-child(2) { animation-delay: 0.08s; }
.bot-msg-step:nth-child(3) { animation-delay: 0.16s; }
.bot-msg-step:nth-child(4) { animation-delay: 0.24s; }
.bot-msg-step:nth-child(5) { animation-delay: 0.32s; }
.bot-msg-step:nth-child(6) { animation-delay: 0.40s; }

/* ——— STEP INDICATOR ——— */
.bot-msg-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding-top: 24px;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
    transition: all 0.3s ease;
}

.bot-msg-step:hover .step-number {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.25);
    transform: scale(1.1);
}

.step-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, var(--primary) 0%, var(--border) 100%);
    margin-top: 4px;
    min-height: 20px;
}

/* ——— MESSAGE CARD ——— */
.bot-msg-card {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.bot-msg-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(245, 158, 11, 0.3);
}

/* ——— CARD HEADER ——— */
.bot-msg-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.bot-msg-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bot-msg-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.bot-msg-card:hover .bot-msg-icon {
    transform: scale(1.1) rotate(-5deg);
}

.bot-msg-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--black);
    margin-bottom: 2px;
}

.bot-msg-subtitle {
    font-size: 12px;
    color: var(--gray);
    margin: 0;
}

/* ——— CARD ACTIONS ——— */
.bot-msg-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.bot-msg-reset-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bot-msg-reset-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
    transform: rotate(-180deg);
}

.bot-msg-preview-toggle {
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--gray);
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bot-msg-preview-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}

.bot-msg-preview-toggle.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ——— TEXTAREA ——— */
.bot-msg-textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: var(--black);
    background: var(--light-gray);
    resize: vertical;
    transition: all 0.2s ease;
    line-height: 1.6;
}

.bot-msg-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.bot-msg-textarea::placeholder {
    color: #B0B0B0;
}

/* ——— INSERT VARIABLE BAR ——— */
.bot-msg-insert-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.insert-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.insert-var-btn {
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--gray);
    font-size: 11px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.insert-var-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
}

.insert-var-btn:active {
    transform: translateY(0) scale(0.97);
}

.insert-var-btn i {
    font-size: 12px;
}

/* ——— TELEGRAM PREVIEW ——— */
.bot-msg-preview-box {
    margin-top: 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

.tg-preview-header {
    background: #1B2836;
    color: #8B9CAF;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tg-preview-header i {
    color: #2AABEE;
    font-size: 14px;
}

.tg-chat-bubble {
    background: #0E1621;
    padding: 16px;
}

.tg-bot-name {
    color: #6AB3F3;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.tg-bubble-text {
    background: #182533;
    color: #E4E6EB;
    padding: 12px 16px;
    border-radius: 0 14px 14px 14px;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 250px;
    overflow-y: auto;
}

.tg-bubble-text .tg-var-highlight {
    background: rgba(42, 171, 238, 0.15);
    color: #2AABEE;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.tg-bubble-time {
    color: #5B7083;
    font-size: 11px;
    text-align: right;
    margin-top: 6px;
}

/* ——— SAVE BAR ——— */
.bot-msg-save-bar {
    position: fixed;
    bottom: 0;
    left: 260px;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 16px 32px;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}

/* ——— BOT SETTINGS RESPONSIVE ——— */
@media (max-width: 992px) {
    .bot-msg-save-bar {
        left: 0;
    }
}

@media (max-width: 768px) {
    .bot-msg-step-indicator {
        display: none;
    }

    .bot-msg-step {
        gap: 0;
    }

    .bot-msg-card {
        padding: 18px;
    }

    .bot-msg-header {
        flex-direction: column;
    }

    .bot-msg-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .bot-warning-banner {
        flex-direction: column;
        text-align: center;
    }

    .bot-msg-save-bar {
        left: 0;
        padding: 12px 16px;
    }

    .bot-msg-save-bar p {
        display: none;
    }

    .bot-msg-save-bar .btn-primary-custom {
        width: 100%;
    }

    .insert-var-btn {
        padding: 4px 10px;
        font-size: 10px;
    }
}


/* ============================================
   DISCORD CONNECT PAGE
   ============================================ */

/* ─── SERVER / ROLE / CHANNEL SELECTION LIST ─── */
.dc-select-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.dc-select-list::-webkit-scrollbar {
    width: 4px;
}

.dc-select-list::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 4px;
}

.dc-select-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.dc-select-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.dc-select-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateX(4px);
}

.dc-select-item.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 1px var(--primary);
}

.dc-select-item.selected::after {
    content: '\F26A';
    font-family: 'bootstrap-icons';
    position: absolute;
    right: 14px;
    color: var(--primary);
    font-size: 18px;
}

.dc-select-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.dc-select-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.dc-select-icon i {
    font-size: 18px;
    color: var(--gray);
}

.dc-select-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--black);
}

.dc-select-meta {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
}

/* ─── ROLE COLOR DOT ─── */
.dc-role-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(0,0,0,0.1);
}

/* ─── CHANNEL HASH ICON ─── */
.dc-channel-hash {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
}

/* ─── CREATE NEW (role/channel) ─── */
.dc-create-box {
    margin-top: 16px;
    padding: 16px;
    background: var(--light-gray);
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.dc-create-box:hover {
    border-color: var(--primary);
}

.dc-create-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dc-create-title i {
    color: var(--primary);
}

.dc-create-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.dc-create-row .form-control-custom {
    flex: 1;
}

/* ─── LOADING STATE ─── */
.dc-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
}

.dc-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: dcSpin 0.8s linear infinite;
}

@keyframes dcSpin {
    to { transform: rotate(360deg); }
}

.dc-loading-text {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

/* ─── COPY URL BOX ─── */
.dc-copy-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--light-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-top: 12px;
}

.dc-copy-url {
    flex: 1;
    font-size: 12px;
    font-family: 'SF Mono', 'Consolas', monospace;
    color: var(--primary);
    font-weight: 600;
    word-break: break-all;
    user-select: all;
}

.dc-copy-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dc-copy-btn:hover {
    background: var(--primary-hover);
}

.dc-copy-btn.copied {
    background: var(--success);
}

/* ─── OAUTH URL CARD ─── */
.dc-oauth-card {
    text-align: center;
    padding: 24px;
    background: var(--primary-light);
    border: 2px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.dc-oauth-card p {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 16px;
}

/* ─── INFO CARD ─── */
.dc-info-card {
    padding: 16px;
    background: #FFFBEB;
    border: 1px solid #FED7AA;
    border-radius: var(--radius-sm);
    margin-top: 16px;
}

.dc-info-card .dc-info-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dc-info-card .dc-info-title i {
    color: var(--warning);
}

.dc-info-card p {
    font-size: 12px;
    color: var(--gray);
    margin: 0;
    line-height: 1.6;
}

/* ─── COLOR INPUT ─── */
.dc-color-input {
    width: 44px;
    height: 44px;
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 2px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.dc-color-input:hover {
    border-color: var(--primary);
}

/* ─── DISCORD RESPONSIVE ─── */
@media (max-width: 768px) {
    .dc-create-row {
        flex-direction: column;
    }

    .dc-copy-box {
        flex-direction: column;
        text-align: center;
    }

    .dc-select-item {
        padding: 10px 14px;
    }

    .dc-select-item.selected::after {
        display: none;
    }

    .dc-oauth-card {
        padding: 16px;
    }
}

/* ─── PLATFORM SCOPE SELECTOR (Plans) ─── */
.platform-scope-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.platform-scope-option {
    cursor: pointer;
    margin: 0;
}

.platform-scope-option input[type="radio"] {
    display: none;
}

.platform-scope-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: all 0.2s ease;
}

.platform-scope-box i {
    font-size: 18px;
    color: var(--gray);
    transition: color 0.2s ease;
}

.platform-scope-box strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
}

.platform-scope-option input[type="radio"]:checked + .platform-scope-box {
    border-color: var(--primary);
    background: var(--primary-light);
}

.platform-scope-option input[type="radio"]:checked + .platform-scope-box i {
    color: var(--primary);
}

.platform-scope-option input[type="radio"]:checked + .platform-scope-box strong {
    color: var(--primary);
}

.platform-scope-box:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ─── PLAN VISIBLE ON SECTION ─── */
.plan-visible-on {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--light-bg, #F8FAFC);
    border-radius: var(--radius-sm);
    margin-top: 12px;
}

.plan-visible-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.plan-visible-label i {
    font-size: 13px;
}

.plan-visible-icons {
    display: flex;
    gap: 6px;
}

.plan-visible-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 15px;
    transition: transform 0.2s ease;
}

.plan-visible-icon:hover {
    transform: scale(1.15);
}

.plan-visible-icon.telegram {
    background: #E0F2FE;
    color: #0EA5E9;
}

.plan-visible-icon.discord {
    background: #EDE9FE;
    color: #7C3AED;
}

.plan-visible-icon.whatsapp {
    background: #DCFCE7;
    color: #22C55E;
}

.plan-visible-icon.instagram {
    background: #FCE7F3;
    color: #EC4899;
}

/* ─── PLATFORM FILTER TABS ─── */
.platform-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.platform-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.platform-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.platform-filter-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.platform-filter-btn i {
    font-size: 14px;
}

.plan-grid-item.filter-hidden {
    display: none !important;
}

/* ——— Platform Filter Tab Links (Bot Settings) ——— */
.platform-filter-tabs a.platform-filter-btn {
    text-decoration: none;
}

/* ——— Platform Info Banner (Bot Settings) ——— */
.bot-platform-info-banner {
    background: #EEF6FF;
    border: 1px solid #BFDBFE;
    border-left: 4px solid #3B82F6;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #1E40AF;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}

.bot-platform-info-banner i {
    font-size: 16px;
    flex-shrink: 0;
}

/* ——— Discord Preview (Realistic Discord UI) ——— */
.dc-preview-header {
    background: #1E1F22;
    color: #B5BAC1;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #0E0E10;
}

.dc-preview-header i {
    color: #5865F2;
    font-size: 16px;
}

.dc-preview-header .dc-channel-name {
    color: #F2F3F5;
    font-weight: 700;
    font-size: 14px;
}

.dc-chat-area {
    background: #313338;
    padding: 16px 16px 12px 16px;
    min-height: 80px;
}

.dc-msg-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 4px 0;
    border-radius: 4px;
}

.dc-bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5865F2 0%, #7289DA 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.dc-bot-name-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}

.dc-bot-username {
    color: #F2F3F5;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.dc-bot-badge {
    background: #5865F2;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.dc-msg-time {
    color: #949BA4;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
}

/* Discord message text (plain message) */
.dc-bubble-text {
    color: #DBDEE1;
    font-size: 15px;
    line-height: 1.375;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 280px;
    overflow-y: auto;
    font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Discord Embed wrapper (colored left strip) */
.dc-embed-wrapper {
    margin-top: 4px;
    display: flex;
    max-width: 520px;
}

.dc-embed-strip {
    width: 4px;
    border-radius: 4px 0 0 4px;
    background: #5865F2;
    flex-shrink: 0;
}

.dc-embed-body {
    background: #2B2D31;
    border-radius: 0 4px 4px 0;
    padding: 12px 16px;
    flex: 1;
    min-width: 0;
    border: 1px solid #232428;
    border-left: none;
}

.dc-embed-title {
    color: #00A8FC;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.dc-embed-desc {
    color: #DBDEE1;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 250px;
    overflow-y: auto;
    font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.dc-embed-footer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #3F4147;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dc-embed-footer-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #5865F2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #fff;
    flex-shrink: 0;
}

.dc-embed-footer-text {
    color: #949BA4;
    font-size: 11px;
    font-weight: 500;
}

/* Variable highlights in Discord */
.dc-bubble-text .dc-var-highlight,
.dc-embed-desc .dc-var-highlight {
    background: rgba(88, 101, 242, 0.2);
    color: #99AAF5;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.dc-bubble-text strong,
.dc-embed-desc strong {
    color: #F2F3F5;
    font-weight: 700;
}

/* Emoji in Discord */
.dc-bubble-text .dc-emoji,
.dc-embed-desc .dc-emoji {
    font-size: 18px;
    vertical-align: middle;
}

/* Discord Buttons Row */
.dc-buttons-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.dc-btn {
    padding: 6px 16px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    cursor: default;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.dc-btn-primary {
    background: #5865F2;
    color: #fff;
}

.dc-btn-secondary {
    background: #4E5058;
    color: #DBDEE1;
}

.dc-btn-success {
    background: #248046;
    color: #fff;
}

.dc-btn-danger {
    background: #DA373C;
    color: #fff;
}

/* ─── SUBSCRIBE AUTO-INFO (below editor) ─── */
.subscribe-auto-info {
    margin-top: 10px;
    padding: 12px 14px;
    background: #F8F9FB;
    border: 1px dashed #D1D5DB;
    border-radius: 8px;
}
.sai-label {
    font-size: 11px;
    color: var(--gray);
    margin-bottom: 10px;
    font-weight: 500;
}
.sai-label i {
    color: #5865F2;
    margin-right: 4px;
}
.sai-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--black);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #E5E7EB;
}
.sai-plans {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.sai-plan-tag {
    background: #EEF2FF;
    color: #4338CA;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}
.sai-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}
.sai-btn-tag {
    background: #5865F2;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}
.sai-btn-gray {
    background: #6B7280;
}
.sai-footer {
    font-size: 11px;
    color: #9CA3AF;
    border-top: 1px solid #E5E7EB;
    padding-top: 6px;
}
/* ═══════════════════════════════════════════════════════════════
   ANALYTICS DASHBOARD STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ─── ANALYTICS TABS ─── */
.analytics-tabs {
    display: flex;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.analytics-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: none;
    background: none;
    cursor: pointer;
}

.analytics-tab:hover {
    background: var(--light-gray);
    color: var(--black);
}

.analytics-tab.active {
    background: var(--primary);
    color: #fff;
}

.analytics-tab i {
    font-size: 16px;
}

/* ─── DATE RANGE BUTTONS ─── */
.date-range-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.date-range-btn {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
    background: var(--white);
    border: 1px solid var(--border);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.date-range-btn:hover {
    background: var(--light-gray);
    color: var(--black);
    border-color: #CBD5E1;
}

.date-range-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ─── CUSTOM DATE INPUTS ─── */
.custom-date-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.custom-date-inputs .form-control-sm {
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    padding: 6px 10px;
    font-family: 'Inter', sans-serif;
}

/* ─── CHART CONTAINERS ─── */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.chart-container-sm {
    position: relative;
    height: 260px;
    width: 100%;
}

.chart-container-lg {
    position: relative;
    height: 400px;
    width: 100%;
}

/* ─── STAT CARD ANIMATED ─── */
.stat-card-animated {
    opacity: 0;
    animation: analyticsUp 0.5s ease forwards;
}

.chart-card-animated {
    opacity: 0;
    animation: analyticsUp 0.5s ease forwards;
    animation-delay: 0.2s;
}

@keyframes analyticsUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── STAT CHANGE INDICATOR ─── */
.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 12px;
}

.stat-change.up {
    color: #16A34A;
    background: #F0FDF4;
}

.stat-change.down {
    color: #DC2626;
    background: #FEF2F2;
}

.stat-change i {
    font-size: 11px;
}

/* ─── PLATFORM BADGES ─── */
.analytics-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
}

.analytics-platform-badge.telegram {
    background: #E8F4FD;
    color: #0088cc;
}

.analytics-platform-badge.discord {
    background: #EDEAFD;
    color: #5865F2;
}

.analytics-platform-badge.whatsapp {
    background: #E8F8EE;
    color: #25D366;
}

.analytics-platform-badge.instagram {
    background: #FDE8EF;
    color: #E4405F;
}

.analytics-platform-badge.facebook {
    background: #E8F0FE;
    color: #1877F2;
}

.analytics-platform-badge.manual {
    background: #F1F5F9;
    color: #64748B;
}

/* ─── ANALYTICS EMPTY STATE ─── */
.analytics-empty {
    text-align: center;
    padding: 40px 20px;
}

.analytics-empty i {
    font-size: 40px;
    color: var(--border);
    display: block;
    margin-bottom: 12px;
}

.analytics-empty p {
    color: var(--gray);
    font-size: 14px;
    margin: 0;
}

/* ─── MOBILE RESPONSIVE ─── */
@media (max-width: 768px) {
    .analytics-tabs {
        padding: 3px;
        gap: 2px;
    }

    .analytics-tab {
        padding: 8px 12px;
        font-size: 13px;
    }

    .analytics-tab span {
        display: none;
    }

    .analytics-tab i {
        font-size: 18px;
    }

    .date-range-buttons {
        gap: 4px;
    }

    .date-range-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .custom-date-inputs {
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
    }

    .chart-container {
        height: 220px;
    }

    .chart-container-sm {
        height: 200px;
    }

    .stat-card .stat-number {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .analytics-tab {
        padding: 8px 10px;
    }

    .chart-container {
        height: 180px;
    }

    .chart-container-sm {
        height: 180px;
    }
}
