:root {
    /* Default Light Theme variables */
    --bg-main: #f4f5f7;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f3f5;
    --border-color: #e2e8f0;
    --border-glow: rgba(99, 102, 241, 0.08);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.25);
    
    --success: #10b981;
    --error: #ef4444;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    
    --font-sans: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.dark-theme {
    /* Dark Theme Overrides */
    --bg-main: #09090b;
    --bg-card: #18181b;
    --bg-card-hover: #27272a;
    --border-color: #27272a;
    --border-glow: rgba(99, 102, 241, 0.15);
    
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.4);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
	margin:0 auto;
	max-width:1450px;
	
}

/* ==========================================================================
   Sidebar Styles
   ========================================================================== */
.sidebar {
    width: 420px;
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-y: auto;
    flex-shrink: 0;
    box-shadow: 10px 0 30px rgba(0,0,0,0.25);
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    background: linear-gradient(135deg, var(--accent), #a855f7);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--border-glow);
}

.brand-icon {
    color: #fff;
    width: 24px;
    height: 24px;
}

.brand h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.theme-toggle-btn:hover {
    background-color: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.theme-toggle-btn .toggle-icon {
    width: 16px;
    height: 16px;
}

.brand-tagline {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Dropzone (Upload) */
.dropzone-wrapper {
    position: relative;
}

.dropzone {
    border: 2px dashed var(--border-color);
    background-color: rgba(9, 9, 11, 0.5);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dropzone:hover {
    border-color: var(--accent);
    background-color: rgba(99, 102, 241, 0.03);
    box-shadow: 0 0 20px var(--border-glow);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    pointer-events: none;
}

.upload-icon {
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.dropzone:hover .upload-icon {
    transform: translateY(-4px);
    color: var(--accent);
}

.dropzone-content h3 {
    font-size: 1rem;
    font-weight: 600;
}

.dropzone-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.file-limits {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dropzone-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.dropzone-preview img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.btn-remove-image {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(0,0,0,0.6);
    border: 1px solid var(--border-color);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 25;
}

.btn-remove-image:hover {
    background-color: var(--error);
    transform: scale(1.1);
}

.hidden {
    display: none !important;
}

/* Settings Group disabled state */
.settings-group.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* Control Sections */
.control-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.value-badge {
    background-color: var(--bg-card-hover);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Sliders */
.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.slider {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    transition: background 0.3s;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: transform 0.1s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Tabs */
.tabs {
    display: flex;
    background-color: rgba(9, 9, 11, 0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px;
}
body.dark-theme .tabs {
    display: flex;
    background-color: rgba(9, 9, 11, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
	background-color:#00bb1e;
    /*background-color: var(--bg-card-hover);*/
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

body.dark-theme .tab-btn.active {
	
    background-color: var(--bg-card-hover);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Background Control Panes */
.bg-control-pane {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding-top: 0.5rem;
}

.bg-control-pane.active {
    display: flex;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
	background-color: rgba(9, 9, 11, 0.1);
    /*background-color: rgba(9, 9, 11, 0.4);*/
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--radius-md);
}

body.dark-theme .color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
	background-color: rgba(9, 9, 11, 0.4);
    /*background-color: rgba(9, 9, 11, 0.4);*/
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--radius-md);
}


.color-picker-input {
    -webkit-appearance: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    background: none;
}

.color-picker-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-input::-webkit-color-swatch {
    border: 1px solid var(--border-color);
    border-radius: 50%;
}

.color-hex-label {
    font-size: 0.9rem;
    font-family: monospace;
    color: var(--text-primary);
    font-weight: 500;
}

/* Presets */
.color-presets, .gradient-presets {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}

.preset-color, .preset-gradient {
    aspect-ratio: 1;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.preset-color:hover, .preset-gradient:hover {
    transform: scale(1.15);
    border-color: #fff;
}

.gradient-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Text & Inputs */
.text-input {
    width: 100%;
    background-color: rgba(9, 9, 11, 0.1);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
body.dark-theme .text-input {
    width: 100%;
    background-color: rgba(9, 9, 11, 0.9);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.text-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--border-glow);
}

/* Formats Radio Option cards */
.formats-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.format-option {
    cursor: pointer;
}

.format-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.format-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background-color: rgba(9, 9, 11, 0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
}

BODY.dark-theme .format-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background-color: rgba(9, 9, 11, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
}

.format-option input:checked + .format-card {
    border-color: var(--accent);
	background-color:#00bb1e;
    /*background-color: rgba(99, 102, 241, 0.05);*/
    box-shadow: 0 0 12px var(--border-glow);
	color:#fff;
}
body.dark-theme .format-option input:checked + .format-card {
    border-color: var(--accent);
	
    background-color: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 12px var(--border-glow);
	color:#fff;
}

.format-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.format-desc {
    font-size: 0.72rem;
	COLOR:#fff;
    /*color: var(--text-muted);*/
}

/* Buttons */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
	margin-top: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px var(--accent-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}


/* ==========================================================================
   Preview Area
   ========================================================================== */
.preview-area {
    flex-grow: 1;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    padding: 3rem;
    overflow-y: auto;
    gap: 2.5rem;
}

.preview-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.preview-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.previews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    max-width: 1100px;
}

.preview-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.platform-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.platform-icon {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.ios-theme .platform-icon {
    color: #fff;
}

.android-theme .platform-icon {
    color: #3ddc84;
}

/* Shape switcher for Android */
.android-shape-selector {
    display: flex;
    gap: 6px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4px;
}

.shape-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.shape-btn:hover {
    background-color: var(--bg-card-hover);
}

.shape-btn.active {
    background-color: var(--accent);
    outline: 2px solid #fff;
}

.shape-indicator-preview {
    width: 24px;
    height: 24px;
    background-color: rgba(255,255,255,0.15);
    background-size: cover;
    background-position: center;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.25);
}

.shape-indicator-preview.circle {
    border-radius: 50%;
}

.shape-indicator-preview.squircle {
    border-radius: 6px;
}

.shape-indicator-preview.square {
    border-radius: 0%;
}

/* Large Icon Display above Phone */
.large-icon-display-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 1.5rem;
   /* background-color: rgba(9, 9, 11, 0.4);*/
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.large-icon-wrapper {
    width: 140px;
    height: 140px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    transition: border-radius 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.large-preview-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.large-icon-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Card Body Device Mockups */
.card-body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

/* iPhone Frame Mockup */
.iphone-mock {
    width: 280px;
    height: 520px;
    border: 10px solid #222;
    border-radius: 42px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8), inset 0 0 4px rgba(255,255,255,0.2);
    overflow: hidden;
    position: relative;
	background-image: url('images/icon2.png');
    /*background-image: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=280&auto=format&fit=crop');*/
    background-size: cover;
    background-position: center;
}

/* Android Frame Mockup */
.android-mock {
    width: 280px;
    height: 520px;
    border: 10px solid #222;
    border-radius: 36px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8), inset 0 0 4px rgba(255,255,255,0.2);
    overflow: hidden;
    position: relative;
	background-image: url('images/icon1.png');
    /*background-image: url('https://images.unsplash.com/photo-1604871000636-074fa5117945?q=80&w=280&auto=format&fit=crop');*/
    background-size: cover;
    background-position: center;
}

.iphone-screen, .android-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 12px;
    justify-content: space-between;
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0 8px;
    z-index: 10;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.status-bar .icons {
    display: flex;
    gap: 4px;
    align-items: center;
}

.sb-icon {
    width: 10px;
    height: 10px;
}

/* Grid layout in screens */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 12px;
    padding: 24px 4px 10px 4px;
    align-content: start;
    flex-grow: 1;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: default;
}

.app-icon-mock {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.dummy-icon {
    color: #fff;
    width: 22px;
    height: 22px;
    opacity: 0.95;
}

.app-label {
    color: #fff;
    font-size: 0.65rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

/* Shapes for Icon frames */
.squircle {
    border-radius: 11px;
}

.circle {
    border-radius: 50%;
}

.square {
    border-radius: 0%;
}

/* User Live canvases */
.icon-container {
    width: 48px;
    height: 48px;
    position: relative;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
    background-color: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Specific Platform Presets */
.ios-squircle {
    border-radius: 26px; /* High radius for preview, scale appropriately */
}
.icon-container.ios-squircle {
    border-radius: 11px;
}

/* Android shape wrapper class */
.android-shape-preview.circle {
    border-radius: 50%;
}
.android-shape-preview.squircle {
    border-radius: 12% / 12%; /* Accurate squircle scaling */
}
.large-icon-wrapper.android-shape-preview.squircle {
    border-radius: 32px;
}
.android-shape-preview.square {
    border-radius: 0px;
}

.preview-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* iOS Dock */
.iphone-dock {
    background-color: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.iphone-dock .app-item {
    gap: 0;
}

/* Android Hotseat & Search bar */
.google-search {
    margin-top: 15px;
    padding: 0 8px;
}

.search-pill {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.google-g {
    font-weight: 800;
    font-size: 0.9rem;
    color: #4285f4;
}

.mic-icon {
    width: 14px;
    height: 14px;
    color: #5f6368;
}

.android-hotseat {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 4px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.android-hotseat .app-item {
    gap: 0;
}

/* Responsive UI rules */
@media (max-width: 1024px) {
    .app-container {
        flex-direction: column;
        height: auto;
        overflow-y: visible;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .preview-area {
        height: auto;
        padding: 2rem 1.5rem;
    }
    
    .previews-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

/* Multi shape previews container for Android */
.android-multi-preview {
    display: flex;
    flex-direction: row !important;
    justify-content: space-around;
    gap: 12px;
    width: 100%;
}

.multi-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.multi-icon-item .large-icon-wrapper {
    width: 100px;
    height: 100px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.multi-icon-item .large-icon-wrapper.circle {
    border-radius: 50% !important;
}

.multi-icon-item .large-icon-wrapper.squircle {
    border-radius: 24px !important;
}

.multi-icon-item .large-icon-wrapper.square {
    border-radius: 0px !important;
}

/* Footer links in sidebar */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Google Ads banner layout */
.adsense-banner-container {
    width: 100%;
    max-width: 1100px;
    margin: 2rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ad-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.ad-placeholder {
    background-color: rgba(24, 24, 27, 0.4);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    position: relative;
    overflow: hidden;
}

.ad-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    pointer-events: none;
    margin-top: 6px;
}

/* Modals overlays & structures */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(1);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.hidden .modal-card {
    transform: scale(0.9);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background-color: var(--bg-card-hover);
    color: #fff;
}

.modal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: #000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.modal-content ul {
    margin-left: 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.modal-content li strong {
    color: var(--text-primary);
}

.contact-email {
    font-weight: 700;
    color: var(--accent) !important;
    font-size: 1.1rem !important;
}

/* Hidden templates */
.hidden-modal-template {
    display: none !important;
}



