/* ==========================================
   TOOL DASHBOARD - Main Stylesheet
   Design: dyecuto.com style
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
    --bg-main: #eef2f7;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-blue-light: #dbeafe;
    --accent-green: #22c55e;
    --accent-green-light: #dcfce7;
    --accent-red: #ef4444;
    --accent-orange: #f59e0b;
    --accent-purple: #8b5cf6;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --sidebar-width: 235px; /* Narrower to match dyecuto */
    --header-height: 60px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    outline: none;
}

/* ==========================================
   LAYOUT
   ========================================== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* ==========================================
   SIDEBAR
   ========================================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s ease;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

/* Sidebar Header */
.sidebar-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.sidebar-header .brand-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent-blue), #6366f1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

/* Sidebar Menu */
.sidebar-menu {
    flex: 1;
    padding: 12px 0;
}

.menu-section {
    margin-bottom: 6px;
}

.menu-section-title {
    padding: 10px 20px 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-section-title .section-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.menu-section-title .section-icon.blue { background: var(--accent-blue-light); color: var(--accent-blue); }
.menu-section-title .section-icon.green { background: var(--accent-green-light); color: var(--accent-green); }
.menu-section-title .section-icon.purple { background: #f3e8ff; color: var(--accent-purple); }
.menu-section-title .section-icon.orange { background: #fef3c7; color: var(--accent-orange); }

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.menu-item:hover {
    background: #f8fafc;
    color: var(--accent-blue);
}

.menu-item.active {
    color: var(--accent-blue);
    font-weight: 700;
}

.menu-item.active i {
    color: var(--accent-blue) !important;
}

.menu-item i, .menu-item .menu-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.menu-item .fa-check {
    color: var(--accent-green);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-light);
}

.sidebar-footer .menu-item {
    padding: 9px 0;
}

/* ==========================================
   MAIN CONTENT AREA
   ========================================== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================
   HEADER BAR
   ========================================== */
.header-bar {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

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

.header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}

.header-brand .globe-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--bg-main);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fef9c3;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
}

.header-balance i {
    color: var(--accent-orange);
}

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

.header-user .user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.header-user .user-info {
    display: flex;
    flex-direction: column;
}

.header-user .user-label {
    font-size: 11px;
    color: var(--text-muted);
}

.header-user .user-email {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-logout {
    background: var(--accent-blue);
    color: #fff;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-logout:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}

.btn-login {
    background: var(--accent-blue);
    color: #fff;
    padding: 7px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-login:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
    color: #fff;
}

/* ==========================================
   CONTENT AREA
   ========================================== */
.content-area {
    padding: 24px;
    flex: 1;
}

/* ==========================================
   TOOL STATUS CARDS (Top)
   ========================================== */
.tool-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.tool-status-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.tool-status-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tool-status-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tool-status-header .tool-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-status-header .tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-status-header .tool-icon i {
    font-size: 18px;
    color: var(--accent-blue);
}

.tool-status-header .tool-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.tool-status-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.tool-status-info .status-dot {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.tool-status-info .status-dot::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
}

.tool-status-info .status-dot.running::before {
    background: var(--accent-green);
    box-shadow: 0 0 6px rgba(34,197,94,0.4);
    animation: pulse-dot 1.5s infinite;
}

.tool-status-info .status-percent {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.tool-progress-bar {
    width: 100%;
    height: 5px;
    background: var(--bg-main);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.tool-progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), #6366f1);
    border-radius: 10px;
    transition: width 0.5s ease;
    min-width: 0%;
}

.tool-status-time {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* ==========================================
   TERMS BOX
   ========================================== */
.terms-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-blue);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.terms-box h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.terms-box p, .terms-box li {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.terms-box ul {
    list-style: none;
    padding: 0;
}

.terms-box ul li::before {
    content: '•';
    color: var(--accent-blue);
    font-weight: bold;
    margin-right: 8px;
}

/* ==========================================
   TOOL LIST
   ========================================== */
.tool-list-section {
    margin-bottom: 24px;
}

.tool-list-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.tool-list-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.tool-list-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    border-color: var(--accent-blue);
}

.tool-list-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-list-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-list-icon i {
    font-size: 22px;
    color: var(--accent-blue);
}

.tool-list-info {
    flex: 1;
}

.tool-list-info .tool-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.tool-list-info .tool-desc {
    font-size: 12.5px;
    color: var(--text-muted);
}

.tool-list-badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.tool-list-badge.active {
    background: var(--accent-green-light);
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.tool-list-badge.inactive {
    background: #fef2f2;
    color: var(--accent-red);
    border: 1px solid #fecaca;
}

.tool-list-badge.coming {
    background: #f0f9ff;
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue-light);
}

/* ==========================================
   LOGIN PAGE
   ========================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    background: var(--bg-main);
}

.auth-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    top: -100px;
    right: -100px;
}

.auth-left::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    bottom: -80px;
    left: -80px;
}

.auth-left-content {
    color: #fff;
    text-align: center;
    z-index: 1;
    position: relative;
}

.auth-left-content .auth-logo {
    font-size: 48px;
    margin-bottom: 20px;
}

.auth-left-content h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.auth-left-content p {
    font-size: 15px;
    opacity: 0.85;
    max-width: 360px;
    line-height: 1.6;
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.auth-card h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.auth-card .auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-main);
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
    background: #fff;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

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

.form-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-options a {
    font-size: 13px;
    color: var(--accent-blue);
    font-weight: 500;
}

.form-options a:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent-blue), #6366f1);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59,130,246,0.35);
}

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

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: var(--bg-card);
    padding: 0 16px;
    font-size: 12px;
    color: var(--text-muted);
    position: relative;
}

.social-login-btns {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.social-login-btns .social-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.social-login-btns .social-btn:hover {
    border-color: var(--accent-blue);
    background: var(--accent-blue-light);
    color: var(--accent-blue);
}

.social-login-btns .social-btn i {
    font-size: 16px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent-blue);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ==========================================
   DEPOSIT PAGE (Nạp xu)
   ========================================== */
.deposit-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.deposit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.deposit-card:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.deposit-card .deposit-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    background: var(--accent-blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent-blue);
}

.deposit-card h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

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

/* ==========================================
   USER PROFILE PAGE
   ========================================== */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.profile-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.profile-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-row .label {
    width: 140px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.profile-row .value {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==========================================
   HISTORY TABLE
   ========================================== */
.history-table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

.history-table th {
    background: var(--bg-main);
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.history-table td {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

.history-table tr:last-child td {
    border-bottom: none;
}

.history-table tr:hover td {
    background: var(--bg-main);
}

/* ==========================================
   ALERTS / NOTIFICATIONS
   ========================================== */
.alert {
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: var(--accent-green-light);
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fef2f2;
    color: var(--accent-red);
    border: 1px solid #fecaca;
}

.alert-info {
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    border: 1px solid #93c5fd;
}

/* ==========================================
   SUBSCRIPTION PAGE (Kích hoạt / Gia hạn)
   ========================================== */
.subscription-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.sub-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.sub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
}

.sub-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.sub-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 12px 0 8px;
}

.sub-card .sub-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-blue);
    margin-bottom: 4px;
}

.sub-card .sub-duration {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.sub-card .sub-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: left;
}

.sub-card .sub-features li {
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-card .sub-features li i {
    color: var(--accent-green);
    font-size: 12px;
}

.btn-activate {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, var(--accent-blue), #6366f1);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-activate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59,130,246,0.3);
}

/* ==========================================
   TOOL PAGE (Check Banned / Ghép ảnh)
   ========================================== */
.tool-page-header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.tool-page-header .tool-page-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--accent-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent-blue);
}

.tool-page-header .tool-page-title h2 {
    font-size: 18px;
    font-weight: 700;
}

.tool-page-header .tool-page-title p {
    font-size: 13px;
    color: var(--text-muted);
}

.tool-workspace {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.tool-workspace textarea {
    width: 100%;
    min-height: 200px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-family: 'Inter', monospace;
    resize: vertical;
    background: var(--bg-main);
    transition: var(--transition);
}

.tool-workspace textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
    background: #fff;
}

.tool-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.btn-tool {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.sidebar .sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    border-top: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
    margin: 15px 20px 15px 20px;
}

.sidebar .sidebar-logo .logo-icon {
    display: none;
}

.sidebar .sidebar-logo h2 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    padding: 0 16px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Category Sections */
.menu-section {
    margin-bottom: 8px;
}

.menu-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    margin-top: 8px;
}

.menu-section-title .section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #475569;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s;
}

/* Sub-items in Categories */
.menu-section .menu-item {
    padding-left: 20px;
    font-weight: 400;
    color: #475569;
}

.menu-section .menu-item i.fa-check {
    font-size: 15px;
    color: #000;
    margin-right: -4px;
}

.btn-tool.primary {
    background: var(--accent-blue);
    color: #fff;
}

.btn-tool.primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-tool.secondary {
    background: var(--bg-main);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-tool.secondary:hover {
    background: var(--accent-blue-light);
    color: var(--accent-blue);
}

.tool-result {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.tool-result h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* ==========================================
   SIDEBAR BACKDROP (Mobile)
   ========================================== */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

/* ==========================================
   EMPTY STATE
   ========================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 13px;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

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

.animate-fadeIn {
    animation: fadeIn 0.4s ease forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.4s ease forwards;
}

.animate-slideInUp {
    animation: slideInUp 0.4s ease forwards;
}

.tool-status-card { animation: fadeIn 0.4s ease forwards; }
.tool-status-card:nth-child(2) { animation-delay: 0.1s; }
.tool-status-card:nth-child(3) { animation-delay: 0.2s; }

.tool-list-item { animation: slideInUp 0.4s ease forwards; }
.tool-list-item:nth-child(2) { animation-delay: 0.1s; }
.tool-list-item:nth-child(3) { animation-delay: 0.2s; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .content-area {
        padding: 16px;
    }

    .tool-status-grid {
        grid-template-columns: 1fr;
    }

    .header-bar {
        padding: 0 14px;
    }

    .header-user .user-info {
        display: none;
    }

    .header-balance {
        padding: 4px 10px;
        font-size: 12px;
    }

    .deposit-methods {
        grid-template-columns: 1fr;
    }

    .subscription-cards {
        grid-template-columns: 1fr;
    }

    .social-login-btns {
        flex-direction: column;
    }

    .auth-card {
        padding: 28px 22px;
    }

    .profile-row {
        flex-direction: column;
        gap: 4px;
    }

    .profile-row .label {
        width: 100%;
    }

    .tool-list-item {
        flex-wrap: wrap;
    }

    .tool-list-badge {
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .header-brand span {
        display: none;
    }

    .content-area {
        padding: 12px;
    }

    .tool-status-card {
        padding: 16px;
    }
}

/* ==========================================
   HEADER USER DROPDOWN COMPONENT
   ========================================== */
.header-user-trigger:hover {
    background: #f8fafc !important;
}

.user-dropdown-item:hover {
    background: #f8fafc !important;
    color: #1e293b !important;
}

.user-dropdown-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}
