/* --- GLOBAL VARIABLES & DESIGN TOKENS --- */
:root {
    --bg-dark: #09070f;
    --bg-card: rgba(20, 16, 36, 0.65);
    --border-color: rgba(189, 0, 255, 0.15);
    --border-hover: rgba(0, 240, 255, 0.4);
    
    --primary: #bd00ff;
    --primary-glow: rgba(189, 0, 255, 0.4);
    --secondary: #00f0ff;
    --secondary-glow: rgba(0, 240, 255, 0.4);
    
    --text-main: #f3f0f7;
    --text-muted: #a39eb0;
    --success: #00ff87;
    --error: #ff3b3b;
    
    --font-header: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- RESET & BASIC STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* Dynamic Glassmorphism Background Orbs */
.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glass-bg::before, .glass-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.18;
}

.glass-bg::before {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -100px;
    animation: float-slow 15s infinite alternate;
}

.glass-bg::after {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -150px;
    left: -100px;
    animation: float-slow 20s infinite alternate-reverse;
}

@keyframes float-slow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.1); }
}

/* --- HEADER & NAVIGATION --- */
header {
    text-align: center;
    padding: 40px 20px 20px 20px;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 8px;
}

.logo h1 {
    font-family: var(--font-header);
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-shadow: 0 0 20px var(--primary-glow);
}

.logo h1 span {
    color: var(--secondary);
    text-shadow: 0 0 20px var(--secondary-glow);
}

.pulse-icon {
    font-size: 2.2rem;
    color: var(--primary);
    display: inline-block;
    animation: pulse 2s infinite;
    text-shadow: 0 0 15px var(--primary);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; filter: brightness(1.2); }
    100% { transform: scale(1); opacity: 0.8; }
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- NAVIGATION TABS --- */
.tab-navigation-wrapper {
    margin: 30px auto;
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.tab-navigation {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

@media (min-width: 1150px) {
    .tab-navigation {
        justify-content: center;
    }
}

.tab-navigation::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 24px;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 40px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 20px rgba(189, 0, 255, 0.35);
}

.tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* --- LAYOUT & CONTAINERS --- */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
    flex-grow: 1;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

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

/* --- GLASSMORPHISM CARDS --- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 35px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 20px 45px rgba(0, 240, 255, 0.05);
}

.glass-card h2 {
    font-family: var(--font-header);
    font-size: 1.5rem;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
    color: #fff;
    font-weight: 800;
}

/* --- FORMS & INPUTS --- */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grid-2-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.grid-3-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .grid-2-form, .grid-3-form {
        grid-template-columns: 1fr;
    }
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type="text"],
input[type="number"],
input[type="url"],
select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(10, 8, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    outline: none;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
    background: rgba(15, 12, 32, 0.9);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 25px 0;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--secondary);
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-main);
    user-select: none;
    cursor: pointer;
}

.info-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 14px;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary));
}

.btn-secondary {
    background: linear-gradient(135deg, #100a26, #1b123d);
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
    filter: blur(15px);
}

.btn-primary.btn-glow:hover::after {
    opacity: 1;
    box-shadow: 0 0 25px var(--primary-glow);
}

.btn-secondary.btn-glow:hover::after {
    opacity: 0.5;
    box-shadow: 0 0 25px var(--secondary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ce0bf5, #00f0ff);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--secondary);
    color: #050308;
    box-shadow: 0 0 20px var(--secondary-glow);
}

/* --- DRAG & DROP UPLOADS --- */
.upload-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.upload-dropzone:hover {
    border-color: var(--secondary);
    background: rgba(0, 240, 255, 0.04);
}

.upload-dropzone.dragover {
    border-color: var(--success);
    background: rgba(0, 255, 135, 0.06);
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.hidden-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-dropzone.success {
    border-color: var(--success);
    background: rgba(0, 255, 135, 0.04);
}

/* --- PLACEHOLDERS & RESULT SECTIONS --- */
.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    padding: 50px 20px;
    height: 100%;
    min-height: 350px;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.success-banner {
    background: rgba(0, 255, 135, 0.1);
    border: 1px solid var(--success);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    color: var(--success);
}

.check-icon {
    font-weight: bold;
    font-size: 1.2rem;
}

.hidden {
    display: none !important;
}

/* --- TABS SYSTEM --- */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out forwards;
}

.tab-content.active {
    display: block;
}

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

/* --- PREVIEW TABLE (CANVA TAB) --- */
.preview-table-container {
    margin-top: 30px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.preview-table-container h3 {
    padding: 15px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.preview-table th,
.preview-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.preview-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-weight: 600;
}

.preview-table tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.canva-guide {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--primary);
    padding: 20px;
    border-radius: 0 12px 12px 0;
}

.canva-guide h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #fff;
}

.canva-guide ol {
    margin-left: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.canva-guide ol li strong {
    color: var(--text-main);
}

/* --- VIDEO RENDER SECTION --- */
.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.neon-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(189, 0, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--secondary);
    border-bottom-color: var(--primary);
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    box-shadow: 0 0 15px var(--primary-glow);
    margin-bottom: 25px;
}

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

.render-msg {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.render-sub-msg {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 320px;
}

.video-preview-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    background: #000;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
}

.video-preview-container video {
    border-radius: 8px;
    outline: none;
    max-width: 100%;
}

/* --- REICHWEITEN BOOSTER --- */
.caption-boxes {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.caption-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    position: relative;
}

.caption-card strong {
    font-size: 0.8rem;
    color: var(--secondary);
    display: block;
    margin-bottom: 8px;
}

.caption-text {
    font-size: 0.9rem;
    white-space: pre-wrap;
    line-height: 1.4;
    padding-right: 80px;
}

.btn-copy {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition-smooth);
}

.btn-copy:hover {
    background: var(--secondary);
    color: #000;
}

.tips-box {
    background: rgba(189, 0, 255, 0.03);
    border: 1px solid rgba(189, 0, 255, 0.1);
    padding: 20px;
    border-radius: 16px;
}

.tips-box h3 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

.tips-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tips-box ul li {
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 20px;
}

.tips-box ul li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* --- REEL BATCH MANAGER & ACCORDION CARDS --- */
.reel-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.reel-card:hover {
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.05);
    background: rgba(255, 255, 255, 0.03);
}

.reel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.reel-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.accordion-arrow {
    transition: transform 0.2s ease;
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.reel-title {
    color: var(--secondary);
    font-family: var(--font-header);
    font-size: 1rem;
    font-weight: 700;
}

.reel-text-preview {
    color: var(--text-muted);
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
    display: inline-block;
}

/* Overrides Section */
.override-header {
    margin: 15px 0 10px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.override-header:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.override-body {
    padding: 10px 0;
    animation: slideDown 0.3s ease-in-out forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.media-overrides {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.media-overrides h4 {
    font-size: 0.8rem;
    margin-bottom: 5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-result-box {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    animation: fadeIn 0.4s ease-in-out;
}

/* Custom Scrollbar for Accordion List */
#reels-list::-webkit-scrollbar {
    width: 6px;
}

#reels-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 10px;
}

#reels-list::-webkit-scrollbar-thumb {
    background: rgba(189, 0, 255, 0.2);
    border-radius: 10px;
}

#reels-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.4);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

/* --- AUTH SECTION IN HEADER --- */
.auth-section {
    position: absolute;
    right: 20px;
    top: 45px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 20;
}

@media (max-width: 768px) {
    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px 10px;
    }
    .auth-section {
        position: static;
        margin-top: 10px;
        justify-content: center;
        width: 100%;
    }
    .logo h1 {
        font-size: 2rem;
    }
}

#auth-logged-out, #auth-logged-in {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-badge {
    background: rgba(189, 0, 255, 0.1);
    border: 1px solid var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    box-shadow: 0 0 10px rgba(189, 0, 255, 0.1);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 10px;
    width: auto;
}

.btn-danger {
    background: linear-gradient(135deg, var(--error), #8b0000);
}

.btn-danger:hover {
    background: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 59, 59, 0.3);
}

/* --- MODALS & OVERLAYS --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(9, 7, 15, 0.85);
    backdrop-filter: blur(8px);
}

.modal.active {
    display: block;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    margin: 8% auto;
    padding: 35px;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 35px var(--primary-glow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: modalSlideIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-content.wide-modal {
    max-width: 950px;
    margin: 5% auto;
}

@media (max-height: 600px) {
    .modal-content {
        margin: 2% auto;
        padding: 20px;
    }
    .modal-content.wide-modal {
        margin: 2% auto;
    }
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-btn {
    position: absolute;
    right: 25px;
    top: 20px;
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.close-btn:hover {
    color: var(--secondary);
}

/* --- ACCOUNT DASHBOARD LAYOUT --- */
.account-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 30px;
    margin-top: 20px;
}

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

.account-left {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 16px;
}

.account-left h3, .account-right h3 {
    font-family: var(--font-header);
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
}

.quota-meter-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    margin: 8px 0;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.subscription-free {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.subscription-abo10, .subscription-abo20, .subscription-abo50, .subscription-abo100, .subscription-abo300 {
    background: rgba(0, 240, 255, 0.15);
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

.subscription-master {
    background: rgba(189, 0, 255, 0.2);
    color: var(--primary);
    border: 1px solid var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

/* --- PRICING GRID & CARDS --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.price-card {
    background: rgba(10, 8, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.price-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.02);
}

.price-card h4 {
    font-family: var(--font-header);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-card .price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin: 10px 0;
}

.price-card .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    border-radius: 8px;
}

.price-card.pro {
    border-color: rgba(0, 240, 255, 0.25);
    background: rgba(0, 240, 255, 0.02);
}

.price-card.pro:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.price-card.master {
    border-color: rgba(189, 0, 255, 0.35);
    background: rgba(189, 0, 255, 0.03);
}

.price-card.master:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(189, 0, 255, 0.25);
}

.history-table-container {
    max-height: 250px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 15px;
}

/* --- BRAND KIT CARDS --- */
.brand-kits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.brand-kit-card {
    background: rgba(10, 8, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.brand-kit-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(189, 0, 255, 0.1);
    transform: translateY(-2px);
}

.brand-kit-card h4 {
    font-family: var(--font-header);
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 700;
}

/* --- PEXELS SEARCH & GRID --- */
.search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.search-bar input {
    flex: 1;
}

.search-bar .btn {
    width: auto;
    padding: 0 35px;
}

.pexels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}

.pexels-video-card {
    background: rgba(10, 8, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pexels-video-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
}

#pexels-gallery::-webkit-scrollbar,
.history-table-container::-webkit-scrollbar {
    width: 6px;
}

#pexels-gallery::-webkit-scrollbar-track,
.history-table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 10px;
}

#pexels-gallery::-webkit-scrollbar-thumb,
.history-table-container::-webkit-scrollbar-thumb {
    background: rgba(189, 0, 255, 0.2);
    border-radius: 10px;
}

#pexels-gallery::-webkit-scrollbar-thumb:hover,
.history-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.4);
}

/* --- HIDDEN FADE ELEMENT TRANSITIONS --- */
.hidden-fade {
    display: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hidden-fade.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.form-group.hidden-fade.show {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 1;
    transform: translateY(0);
}

/* --- FAQ ACCORDION --- */
.faq-container {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 240, 255, 0.15);
}

.faq-header {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    user-select: none;
}

.faq-icon {
    font-size: 1rem;
    color: var(--secondary);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active {
    border-color: rgba(189, 0, 255, 0.25);
    background: rgba(20, 16, 36, 0.8);
    box-shadow: 0 0 15px rgba(189, 0, 255, 0.05);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.35s ease;
    padding: 0 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.faq-item.active .faq-content {
    padding: 0 20px 16px 20px;
    max-height: 800px;
}

.faq-content p {
    margin-bottom: 8px;
}

.faq-content ul, .faq-content ol {
    margin-left: 18px;
    margin-bottom: 8px;
}

.faq-content li {
    margin-bottom: 4px;
}

.faq-content strong {
    color: var(--text-main);
}

/* --- SUB TABS STYLING --- */
.sub-tab-container {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 8px;
    margin-top: 4px;
}

.sub-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 12px;
    font-family: var(--font-header);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition-smooth);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sub-tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
}

.sub-tab-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.05);
}

.sub-tab-content {
    transition: var(--transition-smooth);
}

.sub-tab-content.hidden {
    display: none !important;
}

/* --- MOBILE & TABLET PORTRAIT / LANDSCAPE RESPONSIVE FIXES --- */
@media (max-width: 768px) {
    .container {
        padding: 0 12px 40px 12px;
    }
    .glass-card {
        padding: 20px;
        border-radius: 16px;
    }
    .tab-navigation-wrapper {
        margin: 15px auto;
        border-radius: 25px;
    }
    .tab-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    .logo h1 {
        font-size: 1.8rem;
    }
    .hero-subtext .subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
    }
}

/* Specific landscape adjustments for mobile & tablet (where height is small) */
@media (max-height: 500px) and (orientation: landscape) {
    header {
        padding: 15px 10px 5px 10px;
    }
    .logo {
        margin-bottom: 2px;
    }
    .logo h1 {
        font-size: 1.5rem;
    }
    .hero-subtext {
        display: none; /* Hide subtitle to save vertical space in landscape */
    }
    .tab-navigation-wrapper {
        margin: 10px auto;
    }
    .tab-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}
