/* Design system global - tema escuro Telegram Premium / Stripe Dashboard */

* {
    scrollbar-width: thin;
    scrollbar-color: #334155 #0b1220;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
    background: #475569;
    background-clip: padding-box;
}

::selection {
    background: rgba(42, 140, 255, 0.35);
    color: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    background-image:
        radial-gradient(circle at 15% 0%, rgba(42, 140, 255, 0.07), transparent 45%),
        radial-gradient(circle at 85% 100%, rgba(42, 140, 255, 0.05), transparent 40%),
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: auto, auto, 32px 32px, 32px 32px;
    background-attachment: fixed;
    font-feature-settings: "ss01" 1, "cv01" 1;
    -webkit-font-smoothing: antialiased;
}

main {
    animation: app-fade-in 0.35s ease-out;
}

@keyframes app-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

a,
button,
input,
select,
textarea {
    transition: all 0.16s ease;
}

/* Cards (rounded-2xl + border-line + bg-card) */
[class*="border-line"][class*="bg-card"] {
    position: relative;
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.04) inset, 0 12px 30px -18px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
}

a[class*="border-line"][class*="bg-card"]:hover,
button[class*="border-line"][class*="bg-card"]:hover {
    border-color: rgba(42, 140, 255, 0.45);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.05) inset, 0 16px 34px -16px rgba(42, 140, 255, 0.18);
    transform: translateY(-1px);
}

/* Primary accent buttons */
[class*="bg-accent"] {
    box-shadow: 0 8px 20px -8px rgba(42, 140, 255, 0.55);
}

button[class*="bg-accent"]:active,
a[class*="bg-accent"]:active {
    transform: translateY(1px);
    box-shadow: 0 4px 12px -6px rgba(42, 140, 255, 0.5);
}

/* Inputs and selects focus glow */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(42, 140, 255, 0.18);
}

input:hover:not(:focus),
select:hover:not(:focus),
textarea:hover:not(:focus) {
    border-color: #334155;
}

/* Badges (rounded-full) */
[class*="rounded-full"][class*="border"] {
    letter-spacing: 0.01em;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

/* Tables */
table {
    border-collapse: separate;
    border-spacing: 0;
}

table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

table tbody tr {
    transition: background-color 0.12s ease;
}

table tbody tr:hover {
    background-color: rgba(148, 163, 184, 0.05);
}

/* Auth pages hero canvas */
.auth-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
}

.auth-content {
    position: relative;
    z-index: 10;
}

/* Toasts */
.toast {
    animation: app-toast-in 0.25s ease-out;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

@keyframes app-toast-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
