:root {
    /* Add countdown progress variable */
    --countdown-progress: conic-gradient(from 0deg, var(--color-primary) 0%, transparent 0%);
}/* ----------------------------------------
   Countdown Timer
   ---------------------------------------- */
.countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.countdown-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(35, 40, 255, 0.2) 0%, rgba(35, 40, 255, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: var(--countdown-progress);
}

.countdown-circle:before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--color-primary) 0%, transparent 0%);
    z-index: -1;
    transition: background 0.1s linear;
}

.countdown-inner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-background-elevated);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#countdown-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--color-text-primary);
    font-family: 'Orbitron', sans-serif;
    line-height: 1;
}

.countdown-text {
    font-size: 10px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

.skip-wait-btn {
    display: flex;
    align-items: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.skip-wait-btn:hover {
    transform: translateY(-2px);
}/* ----------------------------------------
   Premium Modal Styles
   ---------------------------------------- */
.premium-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.3) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.premium-icon:before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, var(--color-keyword-bubble) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.4;
    animation: rotateBg 10s linear infinite;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.premium-features {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.feature-item i {
    color: var(--color-accent);
    font-size: 14px;
}

.premium-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pricing-btn {
    background: rgba(255, 215, 0, 0.15);
    color: var(--color-keyword-bubble);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.pricing-btn:hover {
    background: rgba(255, 215, 0, 0.25);
}

.signup-btn {
    background: var(--gradient-primary);
    color: white;
}

.signup-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}/* ----------------------------------------
   MStock AI Generate - Custom CSS
   This extends style-guide.css with application-specific styles
   ---------------------------------------- */

/* ----------------------------------------
   General Layout
   ---------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Header with blur effect */
header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(13, 13, 13, 0.85); /* Using var(--color-background) with opacity */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Header when scrolled */
header.scrolled {
    background-color: rgba(13, 13, 13, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* ----------------------------------------
   Upload Area Styles
   ---------------------------------------- */
.upload-container {
    max-width: 800px;
    margin: 0 auto;
}

.upload-area {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.upload-area.dragging {
    border-color: var(--color-primary);
    background-color: rgba(35, 40, 255, 0.1);
    transform: scale(1.02);
}

/* ----------------------------------------
   Toggle Switch
   ---------------------------------------- */
.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    margin: 0 10px;
}

.toggle-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 34px;
    transition: .4s;
}

.toggle-label:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

.toggle-checkbox:checked + .toggle-label {
    background-color: var(--color-primary);
}

.toggle-checkbox:checked + .toggle-label:before {
    transform: translateX(30px);
}

/* ----------------------------------------
   Preview Grid
   ---------------------------------------- */
.preview-card {
    background: var(--color-background-subtle);
    border: 1px solid var(--color-border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.preview-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--color-border-subtle);
}

.meta-container {
    padding: 16px;
}

.meta-title {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 8px;
}

.meta-section {
    margin-bottom: 16px;
}

.meta-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--color-accent);
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    transform: scale(1.1);
}

.keywords-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    max-height: 100px;
    overflow-y: auto;
}

.keyword {
    background-color: var(--color-keyword-bubble);
    color: var(--color-background);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
}

/* ----------------------------------------
   Loader
   ---------------------------------------- */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.loader {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
}

.loader:before, .loader:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
}

.loader:before {
    border-top-color: var(--color-primary);
    animation: spin 1s linear infinite;
}

.loader:after {
    border-top-color: var(--color-accent);
    animation: spin 0.75s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ----------------------------------------
   Support Button
   ---------------------------------------- */
.fixed-action-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10;
}

.support-button {
    background: var(--gradient-primary);
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-button:hover {
    background: var(--gradient-hover);
    transform: translateY(-3px);
}

.support-dropdown {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: var(--color-background-elevated);
    border: 1px solid var(--color-border-subtle);
    border-radius: 12px;
    width: 180px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.support-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
    text-decoration: none;
}

.support-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
}

.support-link i {
    margin-right: 10px;
    font-size: 16px;
}

/* ----------------------------------------
   Animation Classes - Simplified
   ---------------------------------------- */
.fade-in {
    opacity: 0;
    animation: simpleFadeIn 0.4s ease forwards;
}

@keyframes simpleFadeIn {
    to { opacity: 1; }
}

/* ----------------------------------------
   Responsive Adjustments
   ---------------------------------------- */
@media (max-width: 768px) {
    .upload-area {
        min-height: 200px;
        padding: 20px;
    }
    
    .support-button {
        width: 45px;
        height: 45px;
    }
    
    .preview-image {
        height: 150px;
    }
}

/* Copy Animation */
@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.copy-success {
    color: var(--color-accent);
    animation: copySuccess 0.5s ease;
}