:root {
    --bg-dark: #071516;
    --bg-gradient: radial-gradient(circle at 50% 0%, #153835 0%, #071516 75%);
    --card-bg: rgba(14, 33, 33, 0.78);
    --card-border: rgba(255, 215, 0, 0.18);
    --card-border-glow: rgba(255, 215, 0, 0.4);
    
    --primary-gold: #ffb703;
    --primary-gold-hover: #ffd166;
    --smurf-blue: #2a9d8f;
    --smurf-blue-bright: #48cae4;
    --accent-red: #e63946;
    --accent-green: #2b9348;
    --purple-ai: #9d4edd;
    
    --text-main: #e0f2f1;
    --text-muted: #94a8a5;
    --text-gold: #ffe066;
    
    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.app-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-gradient);
    z-index: -1;
}

/* Header (Full Width) */
.app-header {
    background: rgba(7, 21, 22, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 28px;
    width: 100%;
}

.header-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.smurf-badge {
    background: rgba(157, 78, 221, 0.2);
    color: #c77dff;
    border: 1px solid rgba(157, 78, 221, 0.4);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.logo-area h1 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    background: linear-gradient(90deg, #ffffff, var(--primary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Buttons */
button {
    font-family: var(--font-body);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), #f77f00);
    color: #071516;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(255, 183, 3, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 183, 3, 0.5);
    background: linear-gradient(135deg, var(--primary-gold-hover), #f77f00);
}

.btn-lg {
    padding: 12px 20px;
    font-size: 1rem;
}

.btn-ai {
    background: linear-gradient(135deg, #7b2cbf, #9d4edd);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(157, 78, 221, 0.4);
}

.btn-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.6);
    background: linear-gradient(135deg, #9d4edd, #c77dff);
}

.btn-key-active {
    background: linear-gradient(135deg, #2b9348, #38b000) !important;
    border: 1px solid #80ed99 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(56, 176, 0, 0.5) !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.btn-danger {
    background: rgba(230, 57, 70, 0.15);
    color: #ff8fa3;
    border: 1px solid rgba(230, 57, 70, 0.3);
}

.btn-danger:hover {
    background: rgba(230, 57, 70, 0.3);
    color: #ffffff;
}

/* Full-Width Grid Layout */
.main-container.full-width-layout {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 290px 1fr 340px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1200px) {
    .main-container.full-width-layout {
        grid-template-columns: 260px 1fr 300px;
        padding: 0 16px;
        gap: 16px;
    }
}

@media (max-width: 820px) {
    .main-container.full-width-layout {
        grid-template-columns: 1fr;
        padding: 0 12px;
    }
}

/* Center Panel (Kapitel & Story) */
.story-panel.center-story-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.banner-card {
    position: relative;
    height: 170px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-card);
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(0deg, rgba(7, 21, 22, 0.95) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chapter-badge {
    align-self: flex-start;
    background: var(--primary-gold);
    color: #071516;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 12px;
}

.chapter-badge.ending-badge {
    background: linear-gradient(135deg, #e63946, #ffb703);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 183, 3, 0.6);
}

.chapter-badge.loss-badge {
    background: linear-gradient(135deg, #d62828, #7209b7);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(214, 40, 40, 0.8);
}

.chapter-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #ffffff;
}

/* Focused Scroll Reader Container (Middle) */
.story-reader {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-card);
    
    /* Scroll focus functionality */
    max-height: 520px;
    overflow-y: auto;
    scroll-behavior: smooth;
    position: relative;
}

/* Custom Scrollbar */
.story-reader::-webkit-scrollbar {
    width: 8px;
}

.story-reader::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.story-reader::-webkit-scrollbar-thumb {
    background: var(--smurf-blue);
    border-radius: 4px;
}

.story-reader::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold);
}

/* Story Text Formatting */
.story-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #e0f2f1;
}

.story-text p {
    margin-bottom: 16px;
}

.story-text blockquote {
    border-left: 3px solid var(--primary-gold);
    background: rgba(255, 183, 3, 0.06);
    padding: 12px 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 16px 0;
    font-style: italic;
    color: var(--text-gold);
}

.story-text .highlight-name {
    color: var(--smurf-blue-bright);
    font-weight: 700;
}

/* Left Sidebar (Tillstånd & Logg Card) */
.left-sidebar .state-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--primary-gold);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.state-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.state-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
}

.state-label {
    font-weight: 700;
    color: var(--text-main);
}

.state-val {
    color: var(--smurf-blue-bright);
}

.state-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inventory-tag {
    background: rgba(42, 157, 143, 0.2);
    border: 1px solid rgba(42, 157, 143, 0.4);
    color: #80ed99;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    max-width: 100%;
    word-break: break-word;
}

.log-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 4px;
}

.log-list li {
    position: relative;
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-word;
}

.log-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-weight: bold;
}

/* Choices Section & Ending Cards */
.choices-card {
    background: var(--card-bg);
    border: 1px solid rgba(72, 202, 228, 0.3);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-card);
}

.ending-box {
    text-align: center;
    padding: 20px;
    background: rgba(255, 183, 3, 0.08);
    border: 1px solid var(--primary-gold);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.ending-box.loss-box {
    background: rgba(214, 40, 40, 0.12);
    border: 1px solid #e63946;
}

.ending-box.loss-box h4 {
    color: #ff8fa3;
}

.ending-box h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-gold);
}

.ending-box p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
}

.ending-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.choices-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 20px;
}

.choice-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    text-align: left;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.4;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.choice-btn:hover {
    background: rgba(255, 183, 3, 0.12);
    border-color: var(--primary-gold);
    color: var(--primary-gold-hover);
    transform: translateX(4px);
}

.choice-num {
    background: var(--primary-gold);
    color: #071516;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
}

/* Custom Action Box */
.custom-action-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-action-box label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 2px rgba(255, 183, 3, 0.2);
}

/* Right Sidebar Panels */
.sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.sidebar-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

/* Hero Card */
.hero-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 24px;
}

.hero-avatar-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 12px;
}

.hero-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-gold);
    box-shadow: 0 0 20px rgba(255, 183, 3, 0.4);
}

.hero-status-dot {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    background: #38b000;
    border: 2px solid #071516;
    border-radius: 50%;
}

.hero-details h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-main);
}

.hero-role {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.stats-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

.stat-bar-bg {
    height: 7px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--smurf-blue), var(--primary-gold));
    border-radius: 4px;
}

/* Inventory Grid & Tiles */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
    width: 100%;
}

.inventory-tile {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 0;
    overflow: hidden;
}

.inventory-tile:hover {
    background: rgba(42, 157, 143, 0.15);
    border-color: var(--smurf-blue-bright);
    transform: translateY(-2px);
}

.tile-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.tile-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
    min-width: 0;
    flex: 1;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Journal List */
.journal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    width: 100%;
}

.journal-item {
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid var(--smurf-blue-bright);
    padding: 8px 12px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    min-width: 0;
    overflow-wrap: break-word;
}

.journal-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.journal-rel {
    font-size: 0.75rem;
    color: #80ed99;
}

.journal-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
    word-break: break-word;
}

/* AI Loading Overlay */
.ai-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 21, 22, 0.88);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 250;
    transition: opacity 0.3s ease;
}

.ai-loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.ai-loading-card {
    background: rgba(20, 38, 38, 0.95);
    border: 1px solid var(--purple-ai);
    border-radius: var(--radius-md);
    padding: 36px 48px;
    text-align: center;
    box-shadow: 0 0 40px rgba(157, 78, 221, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(157, 78, 221, 0.2);
    border-top: 4px solid var(--purple-ai);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ai-loading-card h3 {
    font-family: var(--font-heading);
    color: #c77dff;
    font-size: 1.3rem;
}

.ai-loading-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* Modal Styling & Quest Grid */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background: #0d2122;
    border: 1px solid var(--primary-gold);
    border-radius: var(--radius-md);
    padding: 24px;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.modal-card.modal-lg {
    max-width: 540px;
}

.modal-card.modal-xl {
    max-width: 860px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
}

.text-left {
    text-align: left;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.modal-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.modal-body h3 {
    font-family: var(--font-heading);
    color: var(--primary-gold);
    margin-bottom: 8px;
}

.modal-body p {
    font-size: 0.92rem;
    color: var(--text-main);
    line-height: 1.6;
}

/* Quest Grid Styling with Status Badges */
.quest-modal-header {
    border-bottom: 1px dashed rgba(255, 183, 3, 0.3);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.quest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 680px) {
    .quest-grid {
        grid-template-columns: 1fr;
    }
}

.quest-card {
    background: rgba(14, 33, 33, 0.9);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.quest-card.card-completed {
    border-color: var(--primary-gold);
    background: rgba(255, 183, 3, 0.05);
}

.quest-card.card-failed {
    border-color: rgba(230, 57, 70, 0.6);
    background: rgba(230, 57, 70, 0.05);
}

.quest-card:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 6px 20px rgba(255, 183, 3, 0.35);
    transform: translateY(-3px);
    background: rgba(20, 44, 44, 0.95);
}

.quest-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.quest-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.quest-card-header h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--primary-gold);
    line-height: 1.3;
}

.quest-status-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
    flex-shrink: 0;
}

.quest-status-badge.status-new {
    background: rgba(72, 202, 228, 0.15);
    border: 1px solid #48cae4;
    color: #48cae4;
}

.quest-status-badge.status-completed {
    background: linear-gradient(135deg, var(--primary-gold), #f77f00);
    color: #071516;
    box-shadow: 0 0 10px rgba(255, 183, 3, 0.5);
}

.quest-status-badge.status-failed {
    background: rgba(230, 57, 70, 0.25);
    border: 1px solid #e63946;
    color: #ff8fa3;
}

.quest-desc {
    font-size: 0.84rem;
    color: var(--text-main);
    line-height: 1.45;
    flex: 1;
}

.quest-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quest-difficulty {
    font-size: 0.75rem;
    color: #80ed99;
    font-weight: 700;
}

.key-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 16px 0;
}

.key-input-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.key-input-group input, .select-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--purple-ai);
    border-radius: var(--radius-sm);
    padding: 12px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.92rem;
}

.select-input option {
    background: #0d2122;
    color: #ffffff;
}

.key-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.api-test-box {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    line-height: 1.4;
}

.api-test-box.success {
    background: rgba(56, 176, 0, 0.2);
    border: 1px solid #38b000;
    color: #80ed99;
}

.api-test-box.error {
    background: rgba(230, 57, 70, 0.2);
    border: 1px solid #e63946;
    color: #ff8fa3;
}

.api-test-box.hidden {
    display: none;
}

.key-help-text {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    margin-top: 14px;
    line-height: 1.4 !important;
}

.key-help-text a {
    color: var(--smurf-blue-bright);
    text-decoration: underline;
}

/* Toast Container & Persistent Error Toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 300;
    max-width: 440px;
}

.toast {
    background: rgba(7, 21, 22, 0.95);
    border: 1px solid var(--primary-gold);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    font-size: 0.88rem;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    line-height: 1.4;
    transition: opacity 0.2s ease;
}

.toast-error {
    background: rgba(40, 10, 12, 0.95);
    border: 1px solid #e63946;
    color: #ff8fa3;
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
}

.toast-text {
    flex: 1;
    word-break: break-word;
}

.toast-close-btn {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    opacity: 0.85;
    flex-shrink: 0;
}

.toast-close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

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