:root {
    --bg: #030305;
    --accent: #7c7dfd;
    --accent-glow: rgba(124, 125, 253, 0.4);
    --secondary: #c084fc;
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
    --surface: rgba(20, 21, 28, 0.6);
    --card: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --success: #10b981;
    --error: #f43f5e;
    --shell-green: #00c853;
    --radius-xl: 32px;
    --radius-lg: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    /* Premium Gradient Background */
    background-image:
        radial-gradient(circle at 0% 0%, rgba(124, 125, 253, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(192, 132, 252, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(15, 16, 22, 1) 0%, #030305 100%);
    background-attachment: fixed;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.wrapper {
    width: 100%;
    max-width: 850px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.brand-header {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    opacity: 0.4;
    text-transform: uppercase;
    margin-bottom: -1rem;
    transition: all 0.5s;
}

.brand-header:hover {
    color: var(--accent);
    opacity: 1;
    letter-spacing: 0.5em;
    text-shadow: 0 0 20px var(--accent-glow);
}

/* --- NAVIGATION Refined --- */
.nav-bar {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.nav-indicator {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-bg-pill {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    height: calc(100% - 8px);
    top: 4px;
    left: 0;
    width: 0;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
}

.nav-item {
    position: relative;
    padding: 0.7rem 1.4rem;
    padding-left: 2rem;
    border-radius: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.4s;
    user-select: none;
    z-index: 2;
}

.nav-icon {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.nav-item.active {
    color: var(--text);
}

.nav-item.active .nav-icon {
    opacity: 1;
}

/* --- CUSTOM DROPDOWN --- */
.custom-select {
    position: relative;
    width: 100%;
}

.select-trigger {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.select-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(124, 125, 253, 0.1);
}

.select-trigger::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-muted);
    transition: transform 0.3s;
}

.custom-select.open .select-trigger {
    border-color: var(--accent);
}

.custom-select.open .select-trigger::after {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(15, 16, 22, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    z-index: 50;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.custom-select.open .select-options {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.option {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.2s;
}

.option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.option.selected {
    color: var(--accent);
    font-weight: 700;
    background: rgba(124, 125, 253, 0.1);
}

.admin-lock {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-muted);
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.admin-lock:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    transform: translateY(-8px) rotate(15deg);
    box-shadow: 0 20px 60px rgba(124, 125, 253, 0.2);
}

.admin-lock svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.admin-lock:hover svg {
    transform: scale(1.1);
}

/* --- MAIN PANELS --- */
.panel {
    width: 100%;
    background: var(--surface);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-head {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

/* --- UPLOAD AREA --- */
.upload-grid {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    min-height: 240px;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.01);
}

.upload-grid:hover {
    border-color: var(--accent);
    background: rgba(124, 125, 253, 0.03);
}

/* --- FILE TOKENS --- */
.token {
    width: 110px;
    height: 130px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0.8rem;
    animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
    from {
        transform: scale(0.6);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.token .remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: #ff4d4f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.4);
    z-index: 5;
    transition: transform 0.2s;
}

.token svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    opacity: 0.15;
    margin-bottom: 0.8rem;
}

.token .name {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* PER-FILE PROGRESS */
.token .mini-prog {
    position: absolute;
    bottom: 8px;
    left: 10px;
    right: 10px;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.token .mini-prog-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.2s;
}

.token.uploading .mini-prog {
    opacity: 1;
}

.add-more {
    width: 100px;
    height: 110px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
}

.add-more .add-box {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.add-more:hover {
    border-color: var(--accent);
    background: rgba(124, 125, 253, 0.05);
    color: var(--text);
}

.add-more:hover .add-box {
    background: var(--accent);
    color: white;
}

.add-more span {
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0.7;
}

.add-more svg {
    width: 20px;
    height: 20px;
}

/* --- PROGRESS LIST (IMAGE 3 STYLE) --- */
#prog-list {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

.list-head {
    padding: 1.2rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prog-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 3fr;
    align-items: center;
    padding: 1.2rem 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.3s;
}

.prog-row:last-child {
    border-bottom: none;
}

.prog-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.prog-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prog-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.prog-bar-cont {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.prog-bar-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s;
    box-shadow: 0 0 10px var(--accent-glow);
}

.prog-perc {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 45px;
    text-align: right;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- INPUTS --- */
.input-group-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.input-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.input-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

input[type="password"],
select,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
}

textarea {
    height: 280px;
    resize: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
}

/* --- BUTTONS --- */
.btn-primary {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 1.2rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px var(--accent-glow);
    margin-top: 2rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--accent-glow);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.2rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 2rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* SHELL OUTPUT BOX */
.shell-output-box {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 200, 83, 0.2);
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--shell-green);
    word-break: break-all;
    line-height: 1.6;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 200, 83, 0.05), inset 0 0 40px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.5s ease-out;
}

/* PANEL CONFIG ROW — inline vault key + lifespan bar */
.panel-config-row {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.2rem;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.5rem 0.6rem;
}

.config-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem 0.8rem;
    transition: border-color 0.2s;
}

.config-field:focus-within {
    border-color: var(--accent);
}

.config-field input {
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.82rem;
    width: 100%;
    padding: 0;
}

.config-field input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.78rem;
}

.config-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.6;
}

.config-field-select {
    flex: 0 0 auto;
    min-width: 90px;
}

.config-field-select .custom-select {
    width: 100%;
}

.config-field-select .select-trigger {
    padding: 0;
    background: none;
    border: none;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-radius: 0;
}

/* --- CUSTOM SELECT (EXPIRY) --- */
.custom-select {
    position: relative;
    width: 100%;
    user-select: none;
    cursor: pointer;
}

.select-options {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    min-width: 120px;
    background: rgba(15, 16, 22, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.custom-select.open .select-options {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.option {
    padding: 0.8rem 1.2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all 0.2s;
    white-space: nowrap;
}

.option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.option.selected {
    background: rgba(124, 125, 253, 0.15);
    color: var(--accent);
    font-weight: 700;
}

/* SHELL DESTINATION INPUT (Simplified) */
.shell-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 1rem;
    transition: all 0.3s;
}

.shell-input-wrap:focus-within {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
}

.shell-input-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    margin-right: 0.8rem;
    flex-shrink: 0;
}

.shell-input-wrap input {
    flex: 1;
    background: none !important;
    border: none !important;
    padding: 1.1rem 0 !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text);
    outline: none;
}

.shell-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* VALIDATION ERROR */
.input-error {
    border-color: var(--error) !important;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.2);
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.3s ease-in-out 2;
}

/* SMART TIMESTAMP */
.shell-timestamp {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.8;
}


/* PAYLOAD CURRENT FILE CARD */
.payload-current-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: rgba(0, 200, 83, 0.06);
    border: 1px solid rgba(0, 200, 83, 0.2);
    border-radius: 12px;
    margin-bottom: 0.8rem;
}

/* PAYLOAD FILE ROW (admin shell config) */
.payload-file-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s;
    user-select: none;
}

.payload-file-row.selected {
    background: rgba(0, 200, 83, 0.08);
    border-color: rgba(0, 200, 83, 0.3);
}

.payload-file-row .check-box {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.payload-file-row.selected .check-box {
    background: var(--shell-green);
    border-color: var(--shell-green);
}

/* --- ADMIN DASH --- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
}

.file-table-cont {
    overflow-x: auto;
    margin-top: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: background 0.2s;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.admin-del-btn {
    background: none;
    border: none;
    color: var(--error);
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.admin-del-btn:hover {
    transform: scale(1.2) rotate(5deg);
}

#a-logs {
    margin-top: 2rem;
    height: 450px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    overflow-y: auto;
}

/* --- UTILS --- */
.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.icon-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* SUCCESS STATE FOR UPLOAD ROWS */
.prog-row.completed {
    background: rgba(16, 185, 129, 0.05);
}

.prog-row.completed .prog-perc {
    color: var(--success);
}

.prog-row.completed .prog-bar-fill {
    background: var(--success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.icon-btn svg {
    width: 16px;
    height: 16px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@keyframes pop {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

@media (max-width: 650px) {
    .input-group-row {
        flex-direction: column;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }
}

/* --- TOAST NOTIFICATIONS --- */
#toast-container {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    background: rgba(20, 21, 28, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-left: 4px solid var(--accent);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: auto;
    animation: slideInLeft 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.4s;
}

.toast.toast-error {
    border-left-color: var(--error);
}

.toast.toast-success {
    border-left-color: var(--success);
}

.toast.toast-warning {
    border-left-color: #f59e0b;
}

.toast.toast-info {
    border-left-color: var(--accent);
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast-error .toast-icon {
    color: var(--error);
}

.toast-success .toast-icon {
    color: var(--success);
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-info .toast-icon {
    color: var(--accent);
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.toast-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.toast.hiding {
    opacity: 0;
    transform: translateX(-30px);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- TEXT SUCCESS CARD --- */
.text-success-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--success);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon-large {
    width: 64px;
    height: 64px;
    color: var(--success);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.4));
}

.success-url-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent);
    margin: 1.5rem 0;
    word-break: break-all;
    user-select: all;
    transition: all 0.3s;
}

.success-url-box:hover {
    border-color: var(--accent);
    background: rgba(124, 125, 253, 0.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}