
:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --bg-input: #1a1a1a;
    --border-color: #2a2a2a;
    --border-color-light: #3a3a3a;

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    --accent-blue: #4285f4;
    --accent-blue-hover: #5a95f5;
    --accent-blue-glow: rgba(66, 133, 244, 0.3);

    --accent-green: #34a853;
    --accent-purple: #9c27b0;
    --accent-orange: #fbbc04;
    --accent-cyan: #00bcd4;
    --accent-pink: #e91e63;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(66, 133, 244, 0.2);

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bg-color: #000000;
    --gap: 5em;
    --line: 1px;
    --color: rgba(255, 255, 255, 0.2);
    background-color: var(--bg-color);
    background-image:
        linear-gradient(-90deg, transparent calc(var(--gap) - var(--line)), var(--color) calc(var(--gap) - var(--line) + 1px), var(--color) var(--gap)),
        linear-gradient(0deg, transparent calc(var(--gap) - var(--line)), var(--color) calc(var(--gap) - var(--line) + 1px), var(--color) var(--gap));
    background-size: var(--gap) var(--gap);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.initial-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.initial-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.init-cloud {
    --cloud-color: #4387f4;
    --arrows-color: #80b1ff;
    --time-animation: 1s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.init-cloud svg {
    width: 100px;
    height: 100px;
    display: block;
}

.init-cloud svg rect {
    fill: var(--cloud-color);
}

.init-cloud svg g:nth-child(3) {
    transform-origin: 50% 72.8938%;
    fill: var(--arrows-color);
    filter: drop-shadow(0 0 8px black);
    animation: rotation var(--time-animation) linear infinite;
}

.init-cloud svg #shapes g g circle {
    animation: cloud calc(var(--time-animation) * 2) linear infinite;
}

.init-cloud svg #shapes g g circle:nth-child(2) {
    animation-delay: calc((var(--time-animation) * 2) / -3);
}

.init-cloud svg #shapes g g circle:nth-child(3) {
    animation-delay: calc((var(--time-animation) * 2) / -1.5);
}

.init-cloud svg #lines g line {
    stroke-width: 5;
    transform-origin: 50% 50%;
    rotate: -65deg;
    animation: lines calc(var(--time-animation) / 1.33) linear infinite;
}

.loader {
    --cloud-color: #4285f4;
    --arrows-color: #80b1ff;
    --time-animation: 1s;
}

.loader #cloud {
    width: 100px;
    height: 100px;
}

.loader #cloud rect {
    fill: var(--cloud-color);
}

.loader #cloud g:nth-child(3) {
    transform-origin: 50% 72.8938%;
    fill: var(--arrows-color);
    filter: drop-shadow(0 0 8px black);
    animation: rotation var(--time-animation) linear infinite;
}

.loader #shapes g g circle {
    animation: cloud calc(var(--time-animation) * 2) linear infinite;
}

.loader #shapes g g circle:nth-child(2) {
    animation-delay: calc((var(--time-animation) * 2) / -3);
}

.loader #shapes g g circle:nth-child(3) {
    animation-delay: calc((var(--time-animation) * 2) / -1.5);
}

.loader svg #lines g line {
    stroke-width: 5;
    transform-origin: 50% 50%;
    rotate: -65deg;
    animation: lines calc(var(--time-animation) / 1.33) linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

@keyframes lines {
    0% { transform: translateY(-10px); }
    100% { transform: translateY(8px); }
}

@keyframes cloud {
    0% { cx: 20; cy: 60; r: 15; }
    50% { cx: 50; cy: 45; r: 20; }
    100% { cx: 80; cy: 60; r: 15; }
}

.main-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-section.hidden {
    display: none;
}

.header {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-icon svg {
    width: 24px;
    height: 24px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-logout {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.btn-logout svg {
    width: 20px;
    height: 20px;
    display: block;
}

.login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    min-height: calc(100vh - 80px);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.glitch-input-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.input-container {
    position: relative;
    width: 100%;
}

.input-row {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
}

.holo-input {
    width: 100%;
    height: 3.5rem;
    background: rgba(13, 13, 13, 0.7);
    border: none;
    border-bottom: 2px solid #333;
    outline: none;
    padding: 0 3rem 0 1rem;
    color: #00f2ea;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', Consolas, 'Courier New', Courier, monospace;
    font-size: 1rem;
    caret-color: #00f2ea;
    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.holo-input:focus {
    border-color: transparent;
}

.holo-input::placeholder {
    color: transparent;
}

.input-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #e5e5e5;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 11;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', Consolas, 'Courier New', Courier, monospace;
    font-size: 0.875rem;
}

.holo-input:focus + .input-label,
.holo-input:not(:placeholder-shown) + .input-label {
    top: -1.5rem;
    left: 0;
    font-size: 0.8rem;
    opacity: 1;
    color: #00f2ea;
}

.holo-input:focus + .input-label::before,
.holo-input:focus + .input-label::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-secondary);
}

.holo-input:focus + .input-label::before {
    color: #a855f7;
    animation: glitch-label 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.holo-input:focus + .input-label::after {
    color: #00f2ea;
    animation: glitch-label 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both;
}

.input-border,
.input-scanline,
.input-glow,
.input-corners {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.input-border {
    border: 1px solid rgba(0, 242, 234, 0.2);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.corner {
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid #00f2ea;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.corner-tl {
    top: -0.3rem;
    left: -0.3rem;
    border-right: none;
    border-bottom: none;
}

.corner-tr {
    top: -0.3rem;
    right: -0.3rem;
    border-left: none;
    border-bottom: none;
}

.corner-bl {
    bottom: -0.3rem;
    left: -0.3rem;
    border-right: none;
    border-top: none;
}

.corner-br {
    bottom: -0.3rem;
    right: -0.3rem;
    border-left: none;
    border-top: none;
}

.input-glow {
    background: radial-gradient(ellipse at center, rgba(0, 242, 234, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.input-scanline {
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 242, 234, 0.1) 48%,
        rgba(0, 242, 234, 0.3) 50%,
        rgba(0, 242, 234, 0.1) 52%,
        transparent 100%
    );
    opacity: 0;
}

.input-data-stream {
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 0.3rem;
    display: flex;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.stream-bar {
    flex-grow: 1;
    background-color: #00f2ea;
    transition: transform 0.2s, opacity 0.2s;
    transform: scaleY(0);
    transform-origin: bottom;
}

.holo-input:focus ~ .input-border {
    opacity: 1;
    border-color: rgba(0, 242, 234, 0.5);
}

.holo-input:focus ~ .input-corners .corner {
    width: 1.25rem;
    height: 1.25rem;
    border-width: 3px;
    opacity: 1;
}

.holo-input:focus ~ .input-glow {
    opacity: 1;
}

.holo-input:focus ~ .input-scanline {
    animation: scan-vertical 4s linear infinite;
}

.holo-input:focus ~ .input-data-stream {
    opacity: 1;
}

.holo-input:focus ~ .input-data-stream .stream-bar {
    animation: data-pulse 2s infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes glitch-label {
    0% { transform: translate(0); clip-path: inset(0 0 0 0); }
    20% { transform: translate(-0.2rem, 0.1rem); clip-path: inset(50% 0 20% 0); }
    40% { transform: translate(0.1rem, -0.1rem); clip-path: inset(20% 0 60% 0); }
    60% { transform: translate(-0.15rem, 0.1rem); clip-path: inset(80% 0 5% 0); }
    80% { transform: translate(0.15rem, -0.15rem); clip-path: inset(30% 0 45% 0); }
    100% { transform: translate(0); clip-path: inset(0 0 0 0); }
}

@keyframes scan-vertical {
    0% { opacity: 0; transform: translateY(-100%); }
    25% { opacity: 0.5; }
    75% { opacity: 0.5; }
    100% { opacity: 0; transform: translateY(100%); }
}

@keyframes data-pulse {
    0%, 100% { transform: scaleY(0.2); opacity: 0.3; }
    50% { transform: scaleY(1); opacity: 0.8; }
}

.btn-toggle-visibility {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #e5e5e5;
    opacity: 0.5;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: opacity 0.3s ease;
}

.btn-toggle-visibility:hover {
    opacity: 1;
}

.btn-toggle-visibility svg {
    width: 20px;
    height: 20px;
}

.btn-toggle-visibility .hidden {
    display: none;
}

.form-error {
    font-size: 0.8125rem;
    color: #ef4444;
    padding: 0.5rem 0;
}

.form-error.hidden {
    display: none;
}

.btn-primary {
    font: inherit;
    background-color: #f0f0f0;
    border: 0;
    color: #242424;
    border-radius: 0.5em;
    font-size: 1.35rem;
    padding: 0.375em 1em;
    font-weight: 600;
    text-shadow: 0 0.0625em 0 #fff;
    box-shadow:
        inset 0 0.0625em 0 0 #f4f4f4,
        0 0.0625em 0 0 #efefef,
        0 0.125em 0 0 #ececec,
        0 0.25em 0 0 #e0e0e0,
        0 0.3125em 0 0 #dedede,
        0 0.375em 0 0 #dcdcdc,
        0 0.425em 0 0 #cacaca,
        0 0.425em 0.5em 0 #cecece;
    transition: 0.15s ease;
    cursor: pointer;
}

.btn-primary:active {
    translate: 0 0.225em;
    box-shadow:
        inset 0 0.03em 0 0 #f4f4f4,
        0 0.03em 0 0 #efefef,
        0 0.0625em 0 0 #ececec,
        0 0.125em 0 0 #e0e0e0,
        0 0.125em 0 0 #dedede,
        0 0.2em 0 0 #dcdcdc,
        0 0.225em 0 0 #cacaca,
        0 0.225em 0.375em 0 #cecece;
}

.login-sequence-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.login-sequence-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.login-sequence-overlay.black-only .loader {
    display: none;
}

.login-sequence-overlay .loader {
    --cloud-color: #4387f4;
    --arrows-color: #80b1ff;
    --time-animation: 1s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-sequence-overlay .loader #cloud {
    width: 100px;
    height: 100px;
    display: block;
}

.login-sequence-overlay .loader #cloud rect {
    fill: var(--cloud-color);
}

.login-sequence-overlay .loader #cloud g:nth-child(3) {
    transform-origin: 50% 72.8938%;
    fill: var(--arrows-color);
    filter: drop-shadow(0 0 8px black);
    animation: rotation var(--time-animation) linear infinite;
}

.login-sequence-overlay .loader #cloud #shapes g g circle {
    animation: cloud calc(var(--time-animation) * 2) linear infinite;
}

.login-sequence-overlay .loader #cloud #shapes g g circle:nth-child(2) {
    animation-delay: calc((var(--time-animation) * 2) / -3);
}

.login-sequence-overlay .loader #cloud #shapes g g circle:nth-child(3) {
    animation-delay: calc((var(--time-animation) * 2) / -1.5);
}

.login-sequence-overlay .loader #cloud #lines g line {
    stroke-width: 5;
    transform-origin: 50% 50%;
    rotate: -65deg;
    animation: lines calc(var(--time-animation) / 1.33) linear infinite;
}

.login-footer {
    margin-top: 2rem;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    cursor: pointer;
}

.language-selector svg {
    width: 18px;
    height: 18px;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    flex: 1;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.account-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.account-avatar svg {
    width: 28px;
    height: 28px;
}

.account-details {
    display: flex;
    flex-direction: column;
}

.account-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.account-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.last-activity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.last-activity-label {
    color: var(--text-muted);
}

.last-activity-value {
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-balance .stat-icon {
    background: rgba(52, 168, 83, 0.15);
    color: var(--accent-green);
}

.stat-spent .stat-icon {
    background: rgba(251, 188, 4, 0.15);
    color: var(--accent-orange);
}

.stat-input .stat-icon {
    background: rgba(66, 133, 244, 0.15);
    color: var(--accent-blue);
}

.stat-output .stat-icon {
    background: rgba(156, 39, 176, 0.15);
    color: var(--accent-purple);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.chart-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
}

.chart-body {
    padding: 1.5rem;
    height: 300px;
}

.chart-body canvas {
    width: 100% !important;
    height: 100% !important;
}

.models-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    overflow: hidden;
}

.section-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
}

.table-wrapper {
    overflow-x: auto;
}

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

.models-table th,
.models-table td {
    padding: 1rem 1.5rem;
    text-align: left;
}

.models-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
}

.models-table td {
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--border-color);
}

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

.model-name {
    font-weight: 500;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-size: 0.875rem;
    color: var(--accent-blue);
}

.spend-cell {
    font-weight: 600;
    color: var(--accent-orange);
}

.share-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 120px;
}

.share-fill {
    height: 6px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-blue));
    border-radius: 3px;
    min-width: 4px;
}

.share-text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    min-width: 45px;
}

.empty-row td {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

.telegram-section {
    animation: slideUp 0.5s ease;
}

.telegram-section.hidden {
    display: none;
}

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

.telegram-card {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(156, 39, 176, 0.1));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.telegram-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.telegram-icon svg {
    width: 56px;
    height: 56px;
}

.telegram-content {
    flex: 1;
    min-width: 200px;
}

.telegram-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.telegram-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.btn-telegram {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-blue);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    cursor: pointer;
    margin-left: auto;
    align-self: flex-start;
}

.btn-telegram svg {
    width: 20px;
    height: 20px;
}

.api-loader {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.api-loader.hidden {
    display: none;
}

.api-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.api-loader .loader {
    --cloud-color: #4285f4;
    --arrows-color: #80b1ff;
    --time-animation: 1s;
    width: 120px;
    height: 120px;
}

.api-loader .loader #cloud {
    width: 120px;
    height: 120px;
}

.api-loader .loader #cloud rect {
    fill: var(--cloud-color);
}

.api-loader .loader #cloud g:nth-child(3) {
    transform-origin: 50% 72.8938%;
    fill: var(--arrows-color);
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.8));
    animation: rotation var(--time-animation) linear infinite;
}

.api-loader .loader #cloud #shapes g g circle {
    animation: cloud calc(var(--time-animation) * 2) linear infinite;
}

.api-loader .loader #cloud #shapes g g circle:nth-child(2) {
    animation-delay: calc((var(--time-animation) * 2) / -3);
}

.api-loader .loader #cloud #shapes g g circle:nth-child(3) {
    animation-delay: calc((var(--time-animation) * 2) / -1.5);
}

.api-loader .loader #cloud #lines g line {
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 5;
    transform-origin: 50% 50%;
    rotate: -65deg;
    animation: lines calc(var(--time-animation) / 1.33) linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

@keyframes lines {
    0% { transform: translateY(-10px); }
    100% { transform: translateY(8px); }
}

@keyframes cloud {
    0% { cx: 20; cy: 60; r: 15; }
    50% { cx: 50; cy: 45; r: 20; }
    100% { cx: 80; cy: 60; r: 15; }
}

.api-loader-text {
    font-size: 1rem;
    color: var(--text-secondary);
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .login-container {
        padding: 1rem;
    }

    .login-title {
        font-size: 2rem;
    }

    .login-card {
        padding: 1.5rem;
    }

    .dashboard-container {
        padding: 1rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .last-activity {
        width: 100%;
        justify-content: space-between;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .chart-body {
        height: 250px;
    }

    .models-table th,
    .models-table td {
        padding: 0.75rem 1rem;
    }

    .telegram-card {
        flex-direction: column;
        text-align: center;
    }

    .btn-telegram {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .share-bar {
        min-width: 80px;
    }
}


.hidden {
    display: none !important;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

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

::selection {
    background: var(--accent-blue);
    color: white;
}
