* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-color: #f5f7fa;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --error-color: #dc3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--secondary-color);
    color: var(--text-dark);
    line-height: 1.6;
    top: 0 !important;
    position: static !important;
}

/* Google Translate Styles - Hidden widget, auto-translate only */
#google_translate_element {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

#google_translate_element select {
    padding: 6px 30px 6px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
}

#google_translate_element select:hover {
    border-color: #667eea;
}

#google_translate_element .goog-te-banner-frame {
    display: none !important;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

/* Hide Google Translate branding */
.goog-logo-link {
    display: none !important;
}

.goog-te-gadget {
    color: transparent !important;
    font-size: 0 !important;
}

.goog-te-gadget .goog-te-combo {
    margin: 0 !important;
    padding: 6px 30px 6px 8px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    background: white !important;
    font-size: 13px !important;
    cursor: pointer !important;
    outline: none !important;
    transition: border-color 0.3s !important;
}

.goog-te-gadget .goog-te-combo:hover {
    border-color: #667eea !important;
}

/* Hide all Google Translate UI elements */
.goog-te-banner,
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-te-ftab,
.goog-te-gadget,
.goog-te-gadget-simple,
.goog-te-menu-value,
.goog-te-menu-value span,
.goog-te-menu-value:before {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* Prevent translation of site name/logo */
.notranslate {
    -webkit-translate: no;
    translate: no;
}

.logo,
.logo span {
    -webkit-translate: no !important;
    translate: no !important;
}

/* Allow text selection in input fields only */
input,
textarea,
[contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: var(--primary-gradient);
    color: white;
    padding: 18px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.9;
}

.logo-img {
    height: 32px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.user-info,
.balance,
.daily-limit {
    padding: 9px 18px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.user-info::before {
    content: '👤';
    font-size: 14px;
    opacity: 0.9;
}

.balance::before {
    content: '💰';
    font-size: 14px;
    opacity: 0.9;
}

.daily-limit::before {
    content: '📸';
    font-size: 14px;
    opacity: 0.9;
}

.user-info:hover,
.balance:hover,
.daily-limit:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-login,
.btn-register,
.btn-logout {
    padding: 10px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-login {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-login::before {
    content: '🔐';
    font-size: 14px;
}

.btn-register {
    background: white;
    color: #667eea;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 12px rgba(255,255,255,0.3);
}

.btn-register::before {
    content: '✨';
    font-size: 14px;
}

.btn-activate-key {
    padding: 10px 22px;
    border-radius: 25px !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background: #FFD700;
    color: #333;
    border: 1px solid rgba(255, 215, 0, 0.5) !important;
    overflow: hidden;
}

.btn-activate-key::before {
    content: '🔑';
    font-size: 14px;
}

.btn-activate-key:hover {
    background: #FFC107;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
}

.btn-logout {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-logout::before {
    content: '🚪';
    font-size: 14px;
}

.btn-login:hover,
.btn-logout:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.btn-register:hover {
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 100px);
    padding: 40px 0;
}

.login-prompt-banner {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    animation: slideIn 0.5s ease;
}

.login-prompt-banner p {
    margin: 0;
    color: var(--text-dark);
    font-size: 16px;
}

.login-prompt-banner a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.login-prompt-banner a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Generator Container */
.generator-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin: 0 auto;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.step.active .step-number {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.1);
}

.step-label {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
}

.step.active .step-label {
    color: var(--text-dark);
    font-weight: 600;
}

/* Step Content */
.step-content {
    display: none;
    animation: fadeIn 0.5s;
}

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

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

.step-content h2 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step-description {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Templates Grid */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.template-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    border: 3px solid transparent;
    background: var(--secondary-color);
    display: flex;
    flex-direction: column;
}

.template-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.template-item.selected {
    border-color: #667eea;
}

.template-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.template-overlay {
    padding: 15px;
    background: var(--secondary-color);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.template-overlay h3 {
    font-size: 16px;
    margin: 0 0 8px 0;
    color: var(--text-dark);
    font-weight: 600;
}

.template-overlay p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Prompts Grid */
.prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    align-items: start;
}

.prompt-item {
    background: var(--secondary-color);
    padding: 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.prompt-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.prompt-item.selected {
    border-color: #667eea;
}

.prompt-item .prompt-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.prompt-item > h3 {
    margin: 0;
    padding: 15px 15px 8px 15px;
    background: var(--secondary-color);
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.prompt-item > p {
    margin: 0;
    padding: 0 15px 15px 15px;
    background: var(--secondary-color);
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.loading-prompts,
.no-prompts,
.error-message {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 16px;
}

.error-message {
    color: var(--error-color);
}

/* Upload Area */
.upload-instructions {
    margin-bottom: 30px;
}

.instruction-card {
    background: var(--secondary-color);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.instruction-card .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.instruction-card h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.instruction-card ul {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.instruction-card li {
    padding: 8px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 25px;
}

.instruction-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--secondary-color);
}

.upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.upload-area.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.upload-placeholder p {
    color: var(--text-light);
    margin: 5px 0;
}

.upload-hint {
    font-size: 12px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Processing Animation */
.processing-container {
    text-align: center;
    padding: 60px 20px;
    background: #000;
    border-radius: 20px;
    margin: 20px 0;
}

.face-analysis {
    animation: pulse 2s infinite;
}

.face-scan {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 50%;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fr-gif-container {
    position: relative;
    z-index: 2;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fr-gif {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    clip-path: circle(50%);
    position: relative;
    z-index: 2;
}

.fr-gif-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(102, 126, 234, 0.8) 0deg,
        rgba(102, 126, 234, 0.4) 60deg,
        rgba(173, 216, 230, 0.9) 90deg,
        rgba(173, 216, 230, 0.6) 120deg,
        rgba(102, 126, 234, 0.4) 150deg,
        rgba(102, 126, 234, 0.8) 210deg,
        rgba(173, 216, 230, 0.9) 240deg,
        rgba(173, 216, 230, 0.6) 270deg,
        rgba(102, 126, 234, 0.8) 300deg,
        rgba(102, 126, 234, 0.8) 360deg
    );
    animation: rotateNeonFace 3s linear infinite;
    z-index: 1;
    filter: blur(1.5px);
    box-shadow: 
        0 0 25px rgba(173, 216, 230, 0.9),
        0 0 50px rgba(102, 126, 234, 0.7),
        0 0 75px rgba(173, 216, 230, 0.5),
        inset 0 0 30px rgba(102, 126, 234, 0.3);
}

.fr-gif-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: #000;
    z-index: 1;
}

@keyframes rotateNeonFace {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes scan {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Generating Animation with FC GIF and Spider Web */
.generating-container {
    position: relative;
    margin: 0 auto 30px;
    width: 300px;
    height: 300px;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.processing-animation h2 {
    color: #fff;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
    margin-top: 20px;
}

.processing-animation p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
}

.spider-web-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.8;
    z-index: 1;
}

.spider-web-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background-image: 
        /* Radial lines from center */
        conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(102, 126, 234, 0.2) 5deg, transparent 10deg, rgba(102, 126, 234, 0.2) 15deg, transparent 20deg, rgba(102, 126, 234, 0.2) 25deg, transparent 30deg, rgba(102, 126, 234, 0.2) 35deg, transparent 40deg, rgba(102, 126, 234, 0.2) 45deg, transparent 50deg),
        /* Circular rings */
        radial-gradient(circle, transparent 20%, rgba(102, 126, 234, 0.15) 21%, transparent 22%, transparent 40%, rgba(102, 126, 234, 0.15) 41%, transparent 42%, transparent 60%, rgba(102, 126, 234, 0.15) 61%, transparent 62%),
        /* Grid pattern */
        linear-gradient(0deg, transparent 48%, rgba(102, 126, 234, 0.1) 49%, rgba(102, 126, 234, 0.1) 51%, transparent 52%),
        linear-gradient(90deg, transparent 48%, rgba(102, 126, 234, 0.1) 49%, rgba(102, 126, 234, 0.1) 51%, transparent 52%);
    background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
    background-position: 0 0, 0 0, 0 0, 0 0;
    transform: translate(-50%, -50%);
    animation: spiderWebMove 15s linear infinite;
}

.spider-web-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: 
        radial-gradient(circle, rgba(102, 126, 234, 0.2) 1px, transparent 1px),
        radial-gradient(circle, rgba(118, 75, 162, 0.2) 1px, transparent 1px);
    background-size: 30px 30px, 40px 40px;
    background-position: 0 0, 15px 15px;
    transform: translate(-50%, -50%);
    animation: spiderWebPulse 4s ease-in-out infinite;
}

@keyframes spiderWebMove {
    0% { transform: translate(-50%, -50%) rotate(45deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(90deg) scale(1.1); }
    100% { transform: translate(-50%, -50%) rotate(45deg) scale(1); }
}

@keyframes spiderWebPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.05); }
}

.fc-gif-container {
    position: relative;
    z-index: 2;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-gif {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    clip-path: circle(50%);
    position: relative;
    z-index: 2;
}

.fc-gif-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #000 0deg,
        #000 60deg,
        #00ff00 90deg,
        #00ff00 120deg,
        #000 150deg,
        #000 210deg,
        #00ff00 240deg,
        #00ff00 270deg,
        #000 300deg,
        #000 360deg
    );
    animation: rotateNeon 3s linear infinite;
    z-index: 1;
    filter: blur(1.5px);
    box-shadow: 
        0 0 25px rgba(0, 255, 0, 0.9),
        0 0 50px rgba(0, 255, 0, 0.7),
        0 0 75px rgba(0, 255, 0, 0.5),
        inset 0 0 30px rgba(0, 255, 0, 0.3);
}

.fc-gif-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: #000;
    z-index: 1;
}

@keyframes rotateNeon {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Result */
.result-container {
    text-align: center;
    padding: 20px 0;
}

.result-container img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.result-actions {
    margin-top: 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s;
}


.modal-content {
    background: white;
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    animation: slideDown 0.3s;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-content.ad-content {
    margin: auto;
    padding: 50px 40px 40px;
    border-radius: 24px;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
    box-shadow: 0 25px 70px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.1);
}

.ad-timer {
    margin-bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timer-circle {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    position: absolute;
    top: 0;
    left: 0;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.2));
}

.timer-bg {
    fill: none;
    stroke: #e8ecf4;
    stroke-width: 10;
}

.timer-progress {
    fill: none;
    stroke: url(#timerGradient);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    transition: stroke-dashoffset 1s linear;
}


.timer-text {
    position: relative;
    z-index: 2;
    font-size: 42px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: -1px;
}

.ad-placeholder {
    background: linear-gradient(135deg, #f8f9fb 0%, #f0f3f7 100%);
    padding: 35px 30px;
    border-radius: 16px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.ad-placeholder h3 {
    margin: 0 0 12px 0;
    color: var(--text-dark);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.ad-placeholder p {
    color: var(--text-light);
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

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

/* Responsive */
@media (max-width: 768px) {
    .main-header {
        padding: 15px 0;
    }
    
    .logo-img {
        height: 28px;
        max-width: 140px;
    }
    
    .header-content {
        gap: 15px;
    }
    
    .main-nav {
        gap: 8px;
        width: 100%;
        justify-content: flex-end;
    }
    
    .user-info,
    .balance,
    .daily-limit {
        padding: 7px 14px;
        font-size: 12px;
    }
    
    .user-info::before,
    .balance::before,
    .daily-limit::before {
        font-size: 12px;
    }
    
    .btn-login,
    .btn-register,
    .btn-logout,
    .btn-activate-key {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .btn-login::before,
    .btn-register::before,
    .btn-logout::before,
    .btn-activate-key::before {
        font-size: 12px;
    }
    
    .generator-container {
        padding: 20px;
    }
    
    .step-indicator {
        flex-wrap: wrap;
    }
    
    .step {
        margin-bottom: 20px;
    }
    
    .templates-grid,
    .prompts-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
}
