:root {
    --tk-bg: #17212B;
    --tk-surface: #242F3D;
    --tk-accent: #3390EC;
    --tk-text: #FFFFFF;
    --tk-subtext: #8B98A5;
    --tk-border: rgba(255, 255, 255, 0.08);
    --tk-glass: rgba(23, 33, 43, 0.9);
    --tk-shadow: 0 8px 24px rgba(0,0,0,0.3);
    --tk-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
[data-theme="light"], .theme-light {
    --tk-bg: #F0F2F5;
    --tk-surface: #FFFFFF;
    --tk-accent: #0088CC;
    --tk-text: #000000;
    --tk-subtext: #707579;
    --tk-border: rgba(0, 0, 0, 0.06);
    --tk-glass: rgba(255, 255, 255, 0.9);
    --tk-shadow: 0 4px 16px rgba(114,114,114,0.1);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
}
body {
    background-color: var(--tk-bg);
    color: var(--tk-text);
    direction: rtl;
    overflow-x: hidden;
    line-height: 1.4;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tk-header, .tk-card, .tk-unblock-btn {
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
#tk-stage {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.tk-header {
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: var(--tk-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 0.5px solid var(--tk-border);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: tk-header-down 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tk-header-down {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.tk-back-btn {
    background: none;
    border: none;
    color: var(--tk-accent);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.tk-back-btn:active {
    background: rgba(51, 144, 236, 0.1);
}
.tk-header-title {
    font-size: 19px;
    font-weight: 700;
    margin-right: 12px;
}
.tk-content {
    padding: 12px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}
.tk-section-lbl {
    font-size: 13px;
    font-weight: 600;
    color: var(--tk-accent);
    margin: 16px 8px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tk-anim-slide {
    animation: tk-fade-in-right 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes tk-fade-in-right {
    from { opacity: 0; transform: translateX(20px); filter: blur(5px); }
    to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

.tk-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 24px;
    animation: tk-empty-entrance 0.8s var(--tk-spring) both;
}

.tk-empty-icon {
    width: 110px;
    height: 110px;
    background: linear-gradient(145deg, var(--tk-surface), var(--tk-border));
    border-radius: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    color: var(--tk-accent);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15), inset 0 0 0 1px rgba(255,255,255,0.05);
    animation: tk-float 5s ease-in-out infinite;
}

.tk-empty-icon svg { 
    width: 50px; 
    height: 50px; 
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

.tk-empty-title {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--tk-text);
    letter-spacing: -0.5px;
}

.tk-empty-sub {
    font-size: 15px;
    color: var(--tk-subtext);
    max-width: 280px;
    text-align: center;
    line-height: 1.7;
    opacity: 0.8;
}

@keyframes tk-empty-entrance {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes tk-float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-12px) rotate(3deg); }
}

.tk-card {
    background: var(--tk-surface);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    animation: tk-card-entrance 0.5s var(--tk-spring) backwards;
}

@keyframes tk-card-entrance {
    0% { 
        opacity: 0; 
        transform: translateX(30px) scale(0.98); 
        filter: blur(4px);
    }
    100% { 
        opacity: 1; 
        transform: translateX(0) scale(1); 
        filter: blur(0);
    }
}

.tk-card:nth-child(1) { animation-delay: 0.05s; }
.tk-card:nth-child(2) { animation-delay: 0.10s; }
.tk-card:nth-child(3) { animation-delay: 0.15s; }
.tk-card:nth-child(4) { animation-delay: 0.20s; }
.tk-card:nth-child(5) { animation-delay: 0.25s; }
.tk-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-left: 14px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #52A2F1, #3390EC);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-weight: 700;
    font-size: 18px;
}
.tk-meta {
    flex: 1;
}
.tk-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}
.tk-sub {
    font-size: 13px;
    color: var(--tk-subtext);
}
.tk-unblock-btn {
    background: none;
    color: var(--tk-accent);
    border: 1.5px solid var(--tk-accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tk-unblock-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--tk-accent);
    opacity: 0;
    transition: opacity 0.2s;
}

.tk-unblock-btn:active::before {
    opacity: 0.15;
}
.tk-unblock-btn:active {
    background: var(--tk-accent);
    color: white;
    transform: scale(0.9);
}
.tk-card.removing {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
    transition: opacity 0.3s var(--tk-spring), transform 0.3s var(--tk-spring);
    pointer-events: none;
}

.tk-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    animation: tk-fade-up 0.8s var(--tk-spring);
}

.tk-empty-icon {
    width: 120px;
    height: 120px;
    background: var(--tk-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    box-shadow: var(--tk-shadow);
    color: var(--tk-accent);
    animation: tk-float 4s ease-in-out infinite;
}

.tk-empty-icon svg {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.tk-empty-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--tk-text);
}

.tk-empty-sub {
    font-size: 15px;
    color: var(--tk-subtext);
    max-width: 240px;
    line-height: 1.5;
}

@keyframes tk-fade-up {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tk-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.tk-avatar {
    transition: transform 0.4s var(--tk-spring);
}

.tk-card:active .tk-avatar {
    transform: scale(1.1) rotate(-5deg);
}