/**
 * Glass Dashboard - نسخه حرفه‌ای با استاندارد UI/UX
 * ✅ نسخه 4.0.0 - کاملاً مقاوم در برابر تداخل قالب
 */

/* ============================================================
   ریست کامل برای جلوگیری از تداخل قالب
============================================================ */
.tk-dash-container *,
.tk-dash-container *::before,
.tk-dash-container *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.tk-dash-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px 60px;
    font-family: 'Estedad', 'IRANSans', 'Tahoma', sans-serif;
    direction: rtl;
    color: #1e293b;
    line-height: 1.6;
}

/* ============================================================
   پیام ورود
============================================================ */
.tk-dash-login-msg {
    max-width: 500px;
    margin: 50px auto;
    padding: 40px 30px;
    text-align: center;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 16px;
    color: #dc2626;
    font-size: 16px;
    font-weight: 500;
}

/* ============================================================
   اسپینر لودینگ
============================================================ */
.tk-loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: #94a3b8;
    font-size: 32px;
}

.tk-loading-txt {
    text-align: center;
    padding: 30px;
    color: #64748b;
}

/* ============================================================
   HEADER
============================================================ */
.tk-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 25px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    margin-bottom: 25px;
}

.tk-dash-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tk-avatar-wrapper {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    background: #f1f5f9;
}

.tk-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.tk-user-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.tk-user-username {
    font-size: 13px;
    color: #94a3b8;
}

.tk-dash-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============================================================
   WALLET BADGE
============================================================ */
.tk-wallet-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 6px 16px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.2s;
    line-height: 1.3;
}

.tk-wallet-badge:hover {
    background: #d1fae5;
    text-decoration: none;
}

.tk-wallet-label {
    font-size: 10px;
    color: #059669;
    opacity: 0.8;
    font-weight: 500;
}

.tk-wallet-amount {
    font-size: 15px;
    font-weight: 800;
    color: #047857;
}

/* ============================================================
   LOGOUT BUTTON
============================================================ */
.tk-logout-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 12px;
    font-size: 18px;
    transition: 0.2s;
    text-decoration: none;
}

.tk-logout-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    text-decoration: none;
}

/* ============================================================
   NAVIGATION
============================================================ */
.tk-dash-nav {
    display: flex;
    gap: 6px;
    padding: 6px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 25px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tk-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: 0.25s ease;
    white-space: nowrap;
    position: relative;
    border: none;
    background: transparent;
    font-family: inherit;
}

.tk-nav-item i {
    font-size: 16px;
}

.tk-nav-item:hover {
    background: #f1f5f9;
    color: #334155;
}

.tk-nav-item.tk-active {
    background: #6366f1;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.tk-nav-item.tk-active:hover {
    background: #4f46e5;
}

/* ============================================================
   BELL NOTIFICATION BADGE
============================================================ */
.tk-bell-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: #ffffff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

.tk-nav-item.tk-bell-active {
    color: #ef4444;
}

.tk-nav-item.tk-bell-active i {
    animation: tk-bell-ring 2s ease-in-out infinite;
}

@keyframes tk-bell-ring {
    0%, 20%, 50%, 80%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(10deg); }
    40%, 60% { transform: rotate(-10deg); }
}

/* ============================================================
   TAB CONTENT
============================================================ */
.tk-tab-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    min-height: 300px;
}

/* ============================================================
   WELCOME
============================================================ */
.tk-dash-welcome {
    margin-bottom: 25px;
}

.tk-dash-welcome h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   DASHBOARD GRID
============================================================ */
.tk-dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

/* ============================================================
   CARDS
============================================================ */
.tk-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    text-decoration: none;
    color: #1e293b;
    transition: 0.25s ease;
    position: relative;
    min-height: 120px;
    text-align: center;
}

.tk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
}

/* Card Gradient (Add Ad) */
.tk-card-gradient {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    padding: 18px 24px;
    min-height: 80px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    color: #ffffff;
}

.tk-card-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.35);
    color: #ffffff;
}

.tk-card-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tk-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.tk-card-gradient .tk-card-icon {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
}

.tk-card-text {
    text-align: right;
}

.tk-card-title {
    font-size: 18px;
    font-weight: 800;
    display: block;
    line-height: 1.2;
}

.tk-card-sub {
    font-size: 12px;
    opacity: 0.8;
}

.tk-card-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
}

.tk-badge-label {
    font-size: 9px;
    opacity: 0.8;
}

.tk-badge-value {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

/* Color Variants */
.tk-card-blue { background: #eff6ff; border-color: #dbeafe; }
.tk-card-blue:hover { background: #dbeafe; }

.tk-card-orange { background: #fff7ed; border-color: #ffedd5; }
.tk-card-orange:hover { background: #ffedd5; }

.tk-card-red { background: #fef2f2; border-color: #fee2e2; }
.tk-card-red:hover { background: #fee2e2; }

.tk-card-purple { background: #f3e8ff; border-color: #e9d5ff; }
.tk-card-purple:hover { background: #e9d5ff; }

.tk-card-gold { background: #fffbeb; border-color: #fde68a; }
.tk-card-gold:hover { background: #fef3c7; }

.tk-card-cyan { background: #ecfeff; border-color: #cffafe; }
.tk-card-cyan:hover { background: #cffafe; }

.tk-card-info { background: #f0f9ff; border-color: #bae6fd; }
.tk-card-info:hover { background: #bae6fd; }

.tk-card-success { background: #f0fdf4; border-color: #bbf7d0; }
.tk-card-success:hover { background: #bbf7d0; }

.tk-card-warning { background: #fffbeb; border-color: #fde68a; }
.tk-card-warning:hover { background: #fef3c7; }

.tk-card-danger { background: #fef2f2; border-color: #fecaca; }
.tk-card-danger:hover { background: #fecaca; }

/* Icon Colors */
.tk-icon-blue { background: #dbeafe; color: #2563eb; }
.tk-icon-orange { background: #ffedd5; color: #ea580c; }
.tk-icon-red { background: #fee2e2; color: #dc2626; }
.tk-icon-purple { background: #e9d5ff; color: #7c3aed; }
.tk-icon-gold { background: #fde68a; color: #d97706; }
.tk-icon-cyan { background: #cffafe; color: #0891b2; }
.tk-icon-info { background: #bae6fd; color: #0284c7; }
.tk-icon-success { background: #bbf7d0; color: #16a34a; }
.tk-icon-warning { background: #fde68a; color: #d97706; }
.tk-icon-danger { background: #fecaca; color: #dc2626; }

/* Card Label */
.tk-card-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-top: 2px;
}

/* Card Small Badge */
.tk-card-badge-small {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
}

.tk-bg-orange { background: #f97316; }
.tk-bg-green { background: #22c55e; }
.tk-bg-red { background: #ef4444; }

/* Pulse Animation */
.tk-pulse {
    animation: tk-pulse 2s ease-in-out infinite;
}

@keyframes tk-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============================================================
   CHAT PANEL
============================================================ */
.tk-chat-panel {
    grid-column: 1 / -1;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-top: 8px;
}

.tk-chat-header {
    padding: 14px 20px;
    background: #f1f5f9;
    font-weight: 700;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tk-chat-search {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.tk-chat-search .tk-input {
    flex: 1;
}

.tk-chat-results {
    max-height: 160px;
    overflow-y: auto;
    background: #ffffff;
}

.tk-chat-user {
    padding: 10px 20px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tk-chat-user:hover {
    background: #f8fafc;
}

.tk-chat-user-info {
    padding: 10px 20px;
    background: #fffbeb;
    border-bottom: 1px solid #fcd34d;
    font-size: 13px;
    color: #92400e;
}

.tk-chat-target-name {
    font-weight: 700;
}

.tk-chat-history {
    padding: 16px 20px;
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #ffffff;
}

.tk-msg-item {
    background: #f8fafc;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    font-size: 13px;
}

.tk-msg-head {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.tk-msg-del {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 13px;
}

.tk-chat-send {
    padding: 14px 20px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================================
   NOTIFICATIONS
============================================================ */
.tk-notif-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tk-notif-item {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid #f1f5f9;
    background: #ffffff;
    transition: 0.2s;
}

.tk-notif-danger {
    background: #fef2f2;
    border-color: #fee2e2;
}

.tk-notif-read {
    background: #f8fafc;
    border-color: #f1f5f9;
}

.tk-notif-unread {
    background: #eff6ff;
    border-color: #dbeafe;
}

.tk-notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.tk-notif-danger .tk-notif-icon {
    background: #fee2e2;
    color: #dc2626;
}

.tk-notif-read .tk-notif-icon {
    background: #f1f5f9;
    color: #94a3b8;
}

.tk-notif-unread .tk-notif-icon {
    background: #dbeafe;
    color: #2563eb;
}

.tk-notif-body {
    flex: 1;
    min-width: 0;
}

.tk-notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.tk-notif-title {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
}

.tk-notif-time {
    font-size: 12px;
    color: #94a3b8;
}

.tk-notif-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.7;
}

.tk-notif-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================================
   ORDERS TABLE
============================================================ */
.tk-table-wrap {
    overflow-x: auto;
    margin: 0 -4px;
}

.tk-table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0 6px;
    font-size: 14px;
}

.tk-table thead th {
    padding: 12px 16px;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tk-table tbody td {
    padding: 14px 16px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    vertical-align: middle;
}

.tk-table tbody td:first-child { border-radius: 0 10px 10px 0; border-right: none; }
.tk-table tbody td:last-child { border-radius: 10px 0 0 10px; border-left: none; }

.tk-order-items {
    font-size: 12px;
    color: #475569;
}

/* Status Badges */
.tk-status-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.tk-status-completed { background: #dcfce7; color: #166534; }
.tk-status-pending { background: #fef9c3; color: #854d0e; }
.tk-status-cancelled { background: #fee2e2; color: #991b1b; }
.tk-status-on-hold { background: #ffedd5; color: #9a3412; }
.tk-status-failed { background: #fee2e2; color: #991b1b; }
.tk-status-processing { background: #dbeafe; color: #1e40af; }
.tk-status-refunded { background: #f3e8ff; color: #6b21a8; }

/* Detail Row */
.tk-detail-row td {
    background: #f8fafc !important;
    padding: 16px 20px !important;
    text-align: right !important;
}

.tk-detail-content {
    font-size: 13px;
    color: #475569;
}

.tk-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px 20px;
    margin-bottom: 12px;
}

.tk-detail-items {
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.tk-detail-list {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
}

.tk-detail-list li {
    padding: 4px 0;
    border-bottom: 1px dashed #f1f5f9;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.tk-item-price {
    color: #3b82f6;
    font-weight: 600;
}

/* ============================================================
   BUTTONS
============================================================ */
.tk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}

.tk-btn-sm {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 8px;
}

.tk-btn-block {
    width: 100%;
    padding: 12px;
}

.tk-btn-primary {
    background: #6366f1;
    color: #ffffff;
}
.tk-btn-primary:hover { background: #4f46e5; color: #ffffff; }

.tk-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}
.tk-btn-secondary:hover { background: #e2e8f0; }

.tk-btn-success {
    background: #22c55e;
    color: #ffffff;
}
.tk-btn-success:hover { background: #16a34a; color: #ffffff; }

.tk-btn-danger {
    background: #ef4444;
    color: #ffffff;
}
.tk-btn-danger:hover { background: #dc2626; color: #ffffff; }

.tk-btn-ghost {
    background: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
}
.tk-btn-ghost:hover { background: #f1f5f9; }

.tk-btn-outline-danger {
    background: transparent;
    color: #ef4444;
    border: 1px solid #ef4444;
}
.tk-btn-outline-danger:hover { background: #fef2f2; }

.tk-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   FORMS
============================================================ */
.tk-profile-form {
    max-width: 100%;
}

.tk-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 20px;
}

.tk-alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.tk-alert-warning i {
    color: #d97706;
    font-size: 18px;
    margin-top: 2px;
}

.tk-form-section {
    background: #f8fafc;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 18px;
    border: 1px solid #f1f5f9;
}

.tk-section-title {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tk-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

.tk-form-row:last-child { margin-bottom: 0; }

.tk-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tk-form-group.tk-full-width {
    grid-column: 1 / -1;
}

.tk-form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.tk-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
    color: #1e293b;
    transition: 0.2s;
    outline: none;
}

.tk-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.tk-input[readonly] {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.tk-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    transition: 0.2s;
}

.tk-input-group:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.tk-input-group .tk-input {
    border: none;
    border-radius: 0;
    padding: 10px 14px;
}

.tk-input-group .tk-input:focus {
    box-shadow: none;
}

.tk-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: #94a3b8;
    font-size: 16px;
    flex-shrink: 0;
    background: #f8fafc;
    height: 100%;
    border-left: 1px solid #e2e8f0;
}

/* ============================================================
   SOCIAL SWITCHES
============================================================ */
.tk-social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.tk-social-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    font-family: inherit;
}

.tk-social-switch input {
    display: none;
}

.tk-social-switch.tk-active {
    background: #eff6ff;
    border-color: #6366f1;
    color: #4f46e5;
}

.tk-social-switch:hover {
    border-color: #94a3b8;
}

.tk-social-input {
    display: none;
    margin-bottom: 10px;
    animation: tk-fade-in 0.25s ease;
}

@keyframes tk-fade-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   UPLOAD BOX
============================================================ */
.tk-upload-box {
    width: 100px;
    height: 100px;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: 0.2s;
}

.tk-upload-box:hover {
    border-color: #6366f1;
    background: #eff6ff;
}

.tk-upload-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tk-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
    font-size: 11px;
}

.tk-upload-placeholder i {
    font-size: 28px;
}

.tk-upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.25s;
    font-size: 20px;
}

.tk-upload-box:hover .tk-upload-overlay {
    opacity: 1;
}

/* ============================================================
   SAVE RESULT
============================================================ */
.tk-save-result {
    margin-top: 14px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.tk-save-result .tk-success { color: #16a34a; }
.tk-save-result .tk-error { color: #dc2626; }

/* ============================================================
   EMPTY STATE
============================================================ */
.tk-empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #94a3b8;
    font-size: 15px;
}

/* ============================================================
   MODAL
============================================================ */
.tk-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.tk-modal-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
}

.tk-crop-wrapper {
    height: 260px;
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.tk-crop-wrapper img {
    max-width: 100%;
    display: block;
}

.tk-modal-actions {
    display: flex;
    gap: 10px;
}

.tk-modal-actions .tk-btn {
    flex: 1;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
    .tk-dash-container { padding: 0 12px 40px; margin: 16px auto; }
    .tk-dash-header { padding: 16px 18px; flex-direction: column; align-items: stretch; }
    .tk-dash-user { gap: 12px; }
    .tk-avatar-wrapper { width: 48px; height: 48px; }
    .tk-user-name { font-size: 16px; }
    .tk-dash-actions { justify-content: space-between; }
    .tk-wallet-badge { align-items: center; }
    
    .tk-dash-nav { gap: 4px; padding: 4px; border-radius: 12px; }
    .tk-nav-item { padding: 8px 14px; font-size: 12px; gap: 6px; }
    .tk-nav-item i { font-size: 14px; }
    
    .tk-tab-content { padding: 16px; border-radius: 12px; }
    .tk-dash-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .tk-card-gradient { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 18px; }
    .tk-card-content { gap: 12px; }
    .tk-card-icon { width: 40px; height: 40px; font-size: 16px; }
    .tk-card-title { font-size: 16px; }
    .tk-card-badge { align-self: flex-start; }
    
    .tk-form-row { grid-template-columns: 1fr; gap: 12px; }
    .tk-form-section { padding: 16px; }
    .tk-social-grid { grid-template-columns: 1fr 1fr; }
    .tk-upload-box { width: 80px; height: 80px; }
    
    .tk-table { min-width: 480px; font-size: 12px; }
    .tk-table tbody td { padding: 10px 12px; }
    .tk-detail-grid { grid-template-columns: 1fr 1fr; }
    
    .tk-notif-item { padding: 12px 14px; gap: 10px; }
    .tk-notif-title { font-size: 13px; }
    .tk-notif-text { font-size: 12px; }
}

@media (max-width: 480px) {
    .tk-dash-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .tk-card { min-height: 100px; padding: 14px 12px; }
    .tk-card-icon { width: 36px; height: 36px; font-size: 14px; }
    .tk-card-label { font-size: 11px; }
    .tk-card-badge-small { font-size: 10px; padding: 1px 6px; }
    .tk-table { min-width: 360px; font-size: 11px; }
    .tk-table tbody td { padding: 8px 8px; }
    .tk-status-badge { font-size: 10px; padding: 2px 8px; }
    .tk-nav-item { padding: 6px 10px; font-size: 11px; }
    .tk-social-grid { grid-template-columns: 1fr 1fr; }
    .tk-modal-box { padding: 14px; }
    .tk-crop-wrapper { height: 200px; }
}