/* 
 * DavinciOpen - Components
 * UI Kit: Buttons, Inputs, Cards, Nav, Footer, Modals, etc.
 */

/* Sticky Header Wrapper */
/* Sticky Header Wrapper */
#sticky-header-wrapper {
    position: -webkit-sticky;
    /* Safari support */
    position: sticky;
    top: 0;
    z-index: 2000;
    /* Highest priority */
    width: 100%;
    /* Backgrounds are handled by children */
    display: flex;
    flex-direction: column;
    /* Stack them vertically */
    transition: all 0.3s ease-in-out;
    /* Smooth transition if height changes */
}

/* Top Bar */
.top-bar {
    position: relative;
    /* Changed from sticky to relative */
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    /* Allow growth */
    min-height: 40px;
    background: linear-gradient(90deg, #7000ff, #00d2d3);
    color: white;
    z-index: 1020;
    /* High enough but below Modals */
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding-right: 40px;
    /* Space for close btn */
}

.top-bar-close {
    position: absolute;
    right: 15px;
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.6);
    font-weight: bold;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 5px;
    z-index: 2005;
}

.top-bar-close:hover {
    color: black;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
}

.tool-btn {
    width: 100%;
    display: flex;
    /* Centering content */
    justify-content: center;
    align-items: center;
    padding: 15px;
    /* Glass properties handled in style.css */
    border-radius: var(--border-radius-md);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* .tool-name removed (empty) */

/* Marketing Grid (Landing Page) */
.marketing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
}

.marketing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 20px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
}

.marketing-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.marketing-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: var(--secondary-accent);
}

.marketing-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.btn-top-cta {
    background: #00d2d3;
    color: #000;
    border: none;
    padding: 2px 12px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 210, 211, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
    line-height: 1.5;
}

.btn-top-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 210, 211, 0.8);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: relative;
    /* Reset from sticky */
    /* top: 0; removed */
    margin-top: 0;
    z-index: auto;
    /* Handled by wrapper */
    min-height: 70px;
    /* Prevent cutting off */
    border-bottom: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
}

#header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 !important;
    /* Remove legacy margins */
}

.nav-icon-btn {
    text-decoration: none;
    font-size: 1.5rem;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.2s;
}

.nav-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-icon-small {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s;
}

.btn-icon-small:hover {
    background: rgba(255, 255, 255, 0.1);
}

#nav-login-btn {
    padding: 8px 20px;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(112, 0, 255, 0.2);
    color: white;
    font-weight: 600;
}

#nav-login-btn:hover {
    background: var(--accent-color);
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.5);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, #b3b3b3 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    font-family: 'Inter', sans-serif;
}

.logo span {
    background: linear-gradient(135deg, #00d2d3, #7000ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--secondary-accent);
    text-shadow: 0 0 20px rgba(112, 0, 255, 0.5);
    font-weight: 900;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--border-radius-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-weight: 600;
    transition: var(--transition-speed);
}

.lang-switcher:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #0a0a0a;
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: none;
    flex-direction: column;
    min-width: 140px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 2001;
    pointer-events: auto;
}

.lang-switcher:hover .lang-dropdown,
.lang-dropdown:hover {
    display: flex;
}

.lang-option {
    padding: 12px 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    /* backdrop-filter removed */
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(112, 0, 255, 0.6);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.0);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 24px;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-ghost:hover {
    background: white;
    color: black;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.btn-glow {
    background: linear-gradient(135deg, var(--accent-color), #5000aa);
    color: white;
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.3);
}

.btn-large {
    font-size: 1.3rem;
    padding: 18px 50px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-pulse {
    background: rgba(5, 5, 5, 0.8);
    background-origin: border-box;
    border: 1px solid transparent;
    /* Fallback */
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: white;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1);
    box-shadow: 0 0 20px rgba(0, 210, 211, 0.5), 0 0 10px rgba(112, 0, 255, 0.5);
    animation: pulse-glow 3s infinite ease-in-out;
    cursor: pointer;
    transition: filter 0.3s, transform 0.3s;
}

.btn-pulse::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #7000ff, #00d2d3, #7000ff);
    z-index: -1;
    border-radius: inherit;
    background-size: 200% 200%;
    animation: gradient-move 3s ease infinite;
}

.btn-pulse:hover {
    filter: brightness(1.5);
    cursor: pointer;
}

.btn-text {
    background: none;
    border: none;
    color: var(--secondary-accent);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.btn-text:hover {
    color: white;
    text-shadow: 0 0 10px var(--secondary-accent);
}

/* Magic Input */
.magic-input-container {
    position: relative;
    /* Glass properties handled in style.css */
    border-radius: 24px;
    /* Static thin border */
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    margin: 0 auto 30px auto;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 2px;
    /* Space for the gradient border */
    /* background: linear-gradient REMOVED */
}

.magic-input-container::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: conic-gradient(from var(--angle), transparent 80%, #00d2d3 95%, #fff 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: rotate-light 30s linear infinite;
    z-index: 5;
}

.tool-btn-dynamic.active {
    background: var(--accent-color) !important;
    /* Purple */
    color: white !important;
    border: 2px solid #fff !important;
    box-shadow: 0 0 25px rgba(112, 0, 255, 0.8), inset 0 0 10px rgba(255, 255, 255, 0.5) !important;
    /* transform: scale(1.05); REMOVED */
    font-weight: 900;
}

.magic-input-inner {
    background: #000;
    border-radius: 22px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.magic-input-container textarea {
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    width: 100%;
    height: 150px;
    padding: 25px;
    font-size: 1.2rem;
    color: white;
    resize: none;
    font-weight: 300;
    caret-color: var(--secondary-accent);
}

.magic-input-container textarea:focus {
    outline: none;
    background: transparent;
}

.input-footer {
    position: relative;
    z-index: 2;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px 15px;
    border-radius: 0 0 24px 24px;
    margin-top: -5px;
}

.helper-btns {
    display: flex;
    gap: 15px;
}

.upload-trigger {
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px 10px;
    border: 1px dashed var(--glass-border);
    border-radius: 10px;
}

.upload-trigger:hover {
    border-color: var(--accent-color);
    color: white;
}

/* Marquee / Reviews */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    /* Mask edges for smooth fade */
    /* Mask edges removed for clean cut */
    /* mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); */
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    width: 100%;
    max-width: 100vw;
}

.marquee-track {
    display: flex;
    overflow: hidden;
    width: fit-content;
}

.marquee-content {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding-right: 20px;
    /* Eliminate Jumping */
    flex-shrink: 0;
}

.review-card {
    /* Glass properties handled in style.css */
    padding: 25px;
    border-radius: 16px;
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* box-shadow handled in style.css */
    width: 300px;
    /* Fixed width */
    height: 250px;
    /* Fixed height for uniformity */
    flex-shrink: 0;
    /* Prevent shrinking */
    white-space: normal;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.review-stars {
    color: #ffd700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.review-text {
    line-height: 1.5;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.author-name {
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 60px;
}

.pricing-card {
    /* Glass properties handled in style.css */
    border-radius: var(--border-radius-lg);
    padding: 40px;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;

    display: flex;
    flex-direction: column;
}

.pricing-card .btn {
    margin-top: auto;
    width: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.featured {
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 50px rgba(112, 0, 255, 0.15);
    background: linear-gradient(180deg, rgba(112, 0, 255, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
}

.badge-deal {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-accent);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    box-shadow: 0 0 20px var(--secondary-accent);
}

.price {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    margin: 20px 0;
    color: white !important;
}

.price span {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 40px;
    text-align: left;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li::before {
    content: "✓";
    color: var(--secondary-accent);
    font-weight: bold;
}

.pricing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--glass-bg);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid var(--glass-border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--accent-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.toggle-label {
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}

.toggle-label.active {
    color: white;
}

.savings-badge {
    background: var(--secondary-accent);
    color: black;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    margin-left: 5px;
}

/* App Cards & Areas */
.app-card {
    /* background: rgba(10, 10, 12, 0.6); REMOVED */
    /* backdrop-filter removed */
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.upload-area {
    border: 2px dashed var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 60px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.02);
}

.upload-area:hover {
    border-color: var(--accent-color);
    background: rgba(112, 0, 255, 0.05);
}

/* General Textarea */
textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 20px;
    color: white;
    font-family: inherit;
    font-size: 1.1rem;
    resize: vertical;
    margin-top: 20px;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* History Table (Admin Style) */
.glass-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: transparent !important;
    border-radius: var(--border-radius-md);
    overflow: visible !important;
    color: var(--text-secondary);
}

.glass-table thead {
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.glass-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    background: transparent !important;
    border: none !important;
}

.glass-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

/* Inline Previews in Prompt */
.inline-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 15px;
    margin-top: 5px;
    min-height: 0;
}

/* Wrapper for Thumb + Delete Btn */
.preview-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    animation: fadeIn 0.3s ease-out;
}

.preview-thumb-small {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.preview-delete {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: rgba(255, 0, 85, 0.9);
    color: white;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
}

.preview-delete:hover {
    transform: scale(1.1);
    background: red;
}

/* Upload Progress Overlay */
.upload-progress-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    z-index: 10;
    transition: opacity 0.4s ease 0.5s;
}

.upload-progress-bar {
    height: 100%;
    width: 0%;
    background: #00d2d3;
    border-radius: 0 0 12px 12px;
    transition: width 0.2s ease;
    box-shadow: 0 0 8px #00d2d3;
}

.upload-progress-overlay.done {
    opacity: 0;
}

.preview-wrapper.upload-error {
    border: 2px solid rgba(255, 60, 60, 0.8);
    border-radius: 12px;
}

.preview-wrapper.upload-error .preview-thumb-small {
    opacity: 0.5;
}

.glass-table tr:last-child td {
    border-bottom: none;
}

/* .glass-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
} */

.history-thumb-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s, filter 0.2s;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Bottom Bonus Badge for Pricing Cards */
.badge-bonus {
    position: absolute;
    bottom: -15px;
    /* WICHTIG: Fixiert am unteren Rand */
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #000000;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    font-size: 0.8rem;
    z-index: 20;
    pointer-events: none;
    /* Verhindert Klick-Probleme */
}

.pricing-credits {
    color: white !important;
    font-weight: bold !important;
    font-size: 1.1rem;
    margin-top: 10px;
    margin-bottom: 10px;
}

.history-thumb-img:hover {
    transform: none;
    filter: brightness(1.2);
    z-index: 10;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.history-btn-dl {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--secondary-accent);
    /* Text Color */
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    width: auto;
    height: auto;
}

.history-btn-dl:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

/* Glass Lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    /* backdrop-filter removed */
    z-index: 3000;
}

.lightbox-content {
    margin: 2vh auto;
    display: block;
    width: auto;
    max-width: 85vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 50px rgba(112, 0, 255, 0.3);
}

@media (max-width: 768px) {
    .lightbox-content {
        width: 95%;
        max-width: 95%;
        margin: 10px auto;
    }
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 3001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--secondary-accent);
    text-decoration: none;
    cursor: pointer;
}

.lightbox-actions {
    text-align: center;
    margin-top: 20px;
}

/* History List (Refactored) */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.history-row {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 120px;
    align-items: center;
    position: relative;
    transition: background 0.2s;
}

.history-row:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.history-thumb {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    position: relative;
}

.history-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-info {
    flex: 1;
    padding: 0 20px;
    overflow: hidden;
}

.history-prompt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.history-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.history-download-btn {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
    color: white;
    font-size: 2rem;
}

.history-thumb:hover .history-download-btn {
    opacity: 1;
}

/* ============================================
   HISTORY CARD VIEW (Redesigned: Image + Sidebar)
   ============================================ */
.history-card {
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
    background: rgba(10, 10, 18, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.history-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* Loading State */
.history-card--loading {
    border-color: rgba(112, 0, 255, 0.2);
}

/* Error State */
.history-card--error {
    border-color: rgba(255, 60, 60, 0.6) !important;
    box-shadow: 0 0 25px rgba(255, 60, 60, 0.15) !important;
}

/* --- Left Side: Image (70%) --- */
.history-card__image-wrap {
    width: 70%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.history-card__image {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    display: block;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.history-card__image--visible {
    opacity: 1;
}

/* Placeholder with animated scan-line */
.history-card__placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 30, 40, 1) 0%, rgba(20, 20, 30, 1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.history-card__placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(112, 0, 255, 0.06) 30%,
            rgba(112, 0, 255, 0.12) 50%,
            rgba(112, 0, 255, 0.06) 70%,
            transparent 100%);
    animation: history-scan-line 2s ease-in-out infinite;
}

/* Error content inside placeholder */
.history-card__error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
    color: rgba(255, 80, 80, 0.8);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.history-card__error-content svg {
    width: 48px;
    height: 48px;
    opacity: 0.6;
}

/* --- Right Side: Sidebar (30%) --- */
.history-card__info {
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 16px;
    min-width: 0;
}

.history-card__prompt {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    max-height: 120px;
    overflow-y: auto;
    word-wrap: break-word;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    flex-shrink: 1;
}

.history-card__prompt::-webkit-scrollbar {
    width: 4px;
}

.history-card__prompt::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

/* Timer — Subtle Sans-Serif */
.history-card__timer {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
    padding: 2px 0;
}

/* Meta */
.history-card__meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 4px;
}

/* Actions – Vertical Stack */
.history-card__actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
    flex: 1;
}

.history-card__actions .smart-btn,
.history-card__actions a {
    width: 100%;
}

.history-card__actions .smart-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

/* Download Button – Highlighted/Colorful */
.history-card__btn-download {
    background: linear-gradient(135deg, #00d2d3, #0097a7) !important;
    color: #000 !important;
    border: none !important;
    font-weight: 700 !important;
    box-shadow: 0 0 15px rgba(0, 210, 211, 0.4) !important;
}

.history-card__btn-download:hover {
    box-shadow: 0 0 25px rgba(0, 210, 211, 0.7) !important;
    transform: translateY(-1px);
}

/* Delete Button – Red */
.history-card__btn-delete {
    background: transparent !important;
    color: #ff4757 !important;
    border: 1px solid rgba(255, 71, 87, 0.4) !important;
    margin-top: auto !important;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.history-card__btn-delete:hover {
    background: rgba(255, 71, 87, 0.15) !important;
    border-color: #ff4757 !important;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.3) !important;
}

/* --- Skeleton Loading / Whoosh --- */
.history-card.skeleton-loading {
    min-height: 400px;
    border-color: rgba(255, 255, 255, 0.05);
}

.history-card.skeleton-loading .history-card__image-wrap {
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    min-height: 400px;
}

.history-skeleton-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: woosh 1.5s infinite;
    transform: translateX(-100%);
}

@keyframes woosh {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Card fade-out for deletion */
.history-card--removing {
    animation: card-fade-out 0.4s ease-out forwards;
}

@keyframes card-fade-out {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.95);
        height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
}

/* Responsive: Stack vertically on mobile */
@media (max-width: 768px) {
    .history-card {
        flex-direction: column;
    }

    .history-card__image-wrap {
        width: 100%;
        min-height: 250px;
    }

    .history-card__info {
        width: 100%;
    }

    .history-card__timer {
        font-size: 0.85rem;
    }

    .history-card.skeleton-loading,
    .history-card.skeleton-loading .history-card__image-wrap {
        min-height: 280px;
    }
}

/* Result Image Limit */
.result-img-wrapper {
    text-align: center;
}

.result-img {
    max-height: 60vh;
    max-width: 100%;
    border-radius: var(--border-radius-md);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* FAQ / Accordion */
.accordion-item,
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    width: 100%;
    display: block;
    box-sizing: border-box;
    /* Prevent width change on open */
    min-width: 100%;
}

details {
    width: 100%;
    display: block;
    box-sizing: border-box;
}

summary {
    width: 100%;
    display: block;
    /* or flex if you want justify-between here directly */
    box-sizing: border-box;
    cursor: pointer;
    list-style: none;
    /* Hide default triangle */
    outline: none;
    /* remove focus outline if desired */
}

summary::-webkit-details-marker {
    display: none;
}

.accordion-header {
    width: 100%;
    display: flex;
    /* Flexbox for layout */
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    text-align: left;
    background: transparent;
    border: none;
    padding: 20px 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.accordion-header:hover {
    color: var(--secondary-accent);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: left;
}

.accordion-content p {
    padding-bottom: 20px;
}

.accordion-item.active .accordion-content,
details[open] .accordion-content {
    max-height: 500px;
    margin-top: 10px;
}

.accordion-item.active .icon {
    transform: rotate(45deg);
}

.icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

/* CTA Box */
.cta-box {
    margin: 100px auto 60px;
    background: linear-gradient(135deg, #240046 0%, #000 100%);
    border-radius: 30px;
    padding: 60px;
    text-align: center;
    border: 1px solid rgba(112, 0, 255, 0.3);
    box-shadow: 0 0 50px rgba(112, 0, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 0px;
    margin-top: 60px;
    background: #020202;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--secondary-accent);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
}

.lang-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-align: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
}

.lang-select option {
    background: black;
    color: white;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.8); REMOVED? Wait, modal-overlay might need bg. */
    background: rgba(0, 0, 0, 0.6);
    /* Keep overlay dark but transparent */
    /* backdrop-filter removed */
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    /* background: rgba(10, 10, 12, 0.8); REMOVED */
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    position: relative;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: white;
}

.help-modal-broad {
    max-width: 900px;
    width: 95%;
    padding: 0;
    overflow: hidden;
    padding: 0;
    overflow: hidden;
    /* background: #0f0f13; REMOVED */
}

.help-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 500px;
}

.help-col {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.help-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.help-item h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
    font-size: 1rem;
}

.dark-panel {
    /* background: rgba(0, 0, 0, 0.3); REMOVED */
    border-left: 1px solid var(--glass-border);
}

.pro-tips-list {
    list-style: none;
    padding: 0;
}

.pro-tips-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
}

.pro-tips-list li::before {
    content: "💡";
    position: absolute;
    left: 0;
    top: 0;
}

/* Wheel */
/* Wheel - Cyberpunk Redesign */
.wheel-modal-content {
    /* Glass properties handled in style.css */
    border: 1px solid var(--secondary-accent);
    box-shadow: 0 0 50px rgba(0, 210, 211, 0.2);
}

.wheel-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    /* Thick dark rim + neon stroke */
    border: 4px solid var(--secondary-accent);
    background: #1a0b2e;
    /* Dark backing */
    box-shadow: 0 0 30px rgba(0, 210, 211, 0.4), inset 0 0 50px rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.wheel {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    /* Remove conic-gradient */
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Center Hub - Floating Orb */
.wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, #7000ff 100%);
    box-shadow: 0 0 20px var(--accent-color), inset 0 0 10px rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.5);
    z-index: 5;
}

.segment {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 50%;
    transform-origin: bottom left;
    transform: translateX(-50%) rotate(calc(60deg * var(--i) + 30deg));
    /* Default - will be overridden by nth-child */
    background: var(--glass-bg);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 30px;
    /* Thin border between segments */
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    /* Triangle slice approx */
    /* Note: Previous clip-path might be better or svg. Using polygon from original CSS (roughly) or relying on overflow hidden? 
       Actually, standard CSS wheels use conic-gradient or clip-path. 
       Let's use the layout from before but apply colors. 
    */
    /* Reverting clip-path to previous working one but ensuring full coverage */
    clip-path: polygon(100% 0, 0 0, 50% 100%);
    /* Wait, the rotation suggests using the standard slice method. 
       Let's stick to the color application primarily. 
       The previous css used: transform: translateX(-50%) rotate(...) 
       And no clip-path in components.css? Wait, components.css didn't have clip-path in Step 124 view?
       Ah, it relied on conic-gradient visually? No, .segment styles exist.
       Let's look at Step 124 again.
       Line 1362: .segment { ... background: transparent ... }
       It did NOT have clip-path. It relied on logic?
       Wait, index.php has: <div class="segment" style="--i:0; --clr:...">...</div>
       If I remove conic-gradient, I MUST style .segment backgrounds.
       But .segment is a square 50%x50%. Rotating it 60deg per item (6 items).
       To make them pie slices, we usually skew or use clip-path. 
       The previous components.css (Step 124) didn't show clip-path.
       BUT style.css (Step 123) DID show clip-path: polygon(0 0, 58% 0, 100% 100%, 0 58%).
       I should probably use that clip-path logic since I am removing the conic-gradient.
    */
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    /* Simple triangle? No, 60deg slice. */
    /* Let's use the one from style.css as base but refined for 6 segments */
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    /* This creates a triangle from top edge to center */
    /* Coordinate system: 0 0 (top-left), 100% 0 (top-right), 50% 100% (bottom-center) */
    /* Since origin is bottom-left (50% 100% of parent?), wait. 
       transform-origin: bottom left; (Line 1368) 
       This means the pivot is at the center of the wheel.
       If I use polygon(0 0, 100% 0, 0 100%) it's a triangle.
       Let's just use the colors as requested, assuming the shape works or I fix it.
       Reference style.css used: transform-origin: bottom right; and clip-path.
       components.css used: transform-origin: bottom left; and NO clip-path (likely relying on conic-gradient behind it).
       Since I removed conic-gradient, I MUST add clip-path or shape to segments.
       
       Let's try a standard 6-segment clip-path.
    */
    clip-path: polygon(0 0, 100% 0, 0 100%);
    /* Just a guess, but let's strictly follow visual instructions first. 
       Actually, simpler: 
       background: conic-gradient(...) was doing the heavy lifting.
       Replacing it with segments requires segments to be visible.
    */
    width: 50%;
    height: 50%;
    transform-origin: bottom right;
    /* Changed to match standard wedge rotation */
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    /* Wedge? */
    /* Let's stick to the user prompt colors first. I'll use a safe clip-path or background-color. */
    /* Actually, better to copy the clip-path from style.css which seemed to intend to be individual segments */
    clip-path: polygon(0 0, 58% 0, 100% 100%, 0 58%);
    /* From style.css */
    transform-origin: bottom right;
}

/* Alternating Neon Segments */
.segment:nth-child(odd) {
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.8), rgba(112, 0, 255, 0.4));
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.segment:nth-child(even) {
    background: linear-gradient(135deg, rgba(0, 210, 211, 0.8), rgba(0, 210, 211, 0.4));
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.segment span {
    transform: rotate(45deg);
    color: white;
    font-weight: 900;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    left: 40px;
    top: 40px;
    position: absolute;
}

/* Pointer - Metallic Triangle */
.wheel-pointer {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    z-index: 10;
    /* Reset borders */
    border: none;
    /* Create shape via clip-path */
    background: linear-gradient(to bottom, #ffffff, #a0a0a0);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.5));
}

/* Showcase */
.showcase-section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    z-index: 5;
}

.showcase-scroller {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 5px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    /* mask-image removed */
    /* mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); */
    /* -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); */
}

.showcase-scroller::-webkit-scrollbar {
    display: none;
}

.showcase-item {
    flex: 0 0 auto;
    width: 280px;
    height: 280px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.showcase-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(112, 0, 255, 0.3);
    border-color: var(--accent-color);
    z-index: 10;
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.showcase-item:hover img {
    transform: scale(1.1);
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    max-width: 900px;
    margin: 0 auto 60px;
}

.action-card {
    /* Glass properties handled in style.css */
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.action-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.action-title {
    font-weight: 700;
    color: white;
    font-size: 1rem;
}

.action-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Auth Split */
.auth-split {
    display: flex;
    gap: 30px;
    align-items: center;
}

.auth-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    position: relative;
    color: var(--text-secondary);
    font-weight: bold;
    font-size: 0.8rem;
}

.auth-divider::before {
    content: '';
    position: absolute;
    height: 100px;
    width: 1px;
    background: var(--glass-border);
    z-index: -1;
}

.auth-divider span {
    background: #1a1a1a;
    padding: 5px 0;
}

.auth-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    padding: 12px;
    border-radius: var(--border-radius-md);
    color: white;
    width: 100%;
}

.small-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
}

/* Component Media Queries */
@media (min-width: 900px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* CLEAN MOBILE 2-ROW LAYOUT */
    nav {
        padding: 15px 20px;
        width: 100%;
        box-sizing: border-box;
        max-width: 100vw;
        overflow-x: hidden;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        padding: 15px 10px;
        gap: 15px;
        margin-top: 0;
        /* No Gap */
    }

    .logo-container {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    #header-controls {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    /* Uniform Button Height on Mobile */
    #header-controls .btn,
    #header-controls .smart-btn,
    .lang-select {
        height: 36px;
        padding: 0 15px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
    }

    .help-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .auth-split {
        flex-direction: column;
    }

    .auth-divider {
        width: 100%;
        height: 40px;
    }

    .auth-divider::before {
        width: 100px;
        height: 1px;
    }
}

@media (max-width: 768px) {
    .tools-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tool-btn {
        padding: 10px 5px;
        font-size: 0.85rem;
    }

    /* Fix Top Bar Close Button on Mobile */
    .top-bar-close {
        position: static !important;
        /* Relative flow */
        margin-left: 10px;
        color: white !important;
        opacity: 0.8;
    }
}

/* Smart Button Transparency Overrides */
.smart-btn-primary {
    background: rgba(112, 0, 255, 0.5) !important;
}

.smart-btn-secondary {
    background: rgba(0, 0, 0, 0.5) !important;
    transition: all 0.3s ease;
}

.smart-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.smart-btn-glow {
    background: rgba(112, 0, 255, 0.5);
    /* Adjusting based on glow base if needed */
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Language Selector Styling to match smart-btn-sm */
.lang-select {
    height: 36px;
    /* Match smart-btn-sm */
    padding: 0.4rem 0.8rem !important;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: normal;
}

.lang-select:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-select:focus {
    outline: none;
    border-color: var(--accent-color);
}