/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    
    /* Cores de fundo */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #334155;
    --bg-light: #f8fafc;
    
    /* Cores de texto */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --text-dark: #1e293b;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    /* Bordas */
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Transições */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

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

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 5px;
    box-shadow: var(--shadow-lg);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: calc(var(--border-radius) - 3px);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 14px;
    font-weight: 500;
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Header */
.header {
    text-align: center;
    padding: 60px 0 40px;
}

.logo {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

.control-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

/* Progress Circle */
.progress-container {
    position: relative;
}

.progress-button {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: var(--transition-normal);
}

.progress-button:hover {
    transform: scale(1.05);
}

.progress-ring {
    transform: rotate(-90deg);
    filter: drop-shadow(0 8px 16px rgba(99, 102, 241, 0.3));
}

.progress-track {
    fill: none;
    stroke: var(--bg-card);
    stroke-width: 8;
}

.progress-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset var(--transition-slow);
}

.progress-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-variant-numeric: tabular-nums;
}

.status-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.play-icon {
    font-size: 2rem;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.progress-button:hover .play-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Duration Controls */
.duration-controls {
    text-align: center;
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 400px;
}

.duration-controls h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.duration-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.duration-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--primary-color);
    color: var(--primary-light);
    padding: 12px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.duration-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.custom-btn {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: white !important;
}

.custom-btn:hover {
    background: #d97706 !important;
    border-color: #d97706 !important;
}

/* Custom Time Input */
.custom-time {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.custom-time.hidden {
    display: none;
}

.custom-time input {
    background: var(--bg-secondary);
    border: 2px solid var(--primary-color);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.custom-time button {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
}

#start-custom {
    background: var(--primary-color);
    color: white;
}

#cancel-custom {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--text-muted);
}

/* Statistics Panel */
.stats-panel {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    margin: 40px auto;
    max-width: 600px;
}

.stats-panel h3 {
    margin-bottom: 25px;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-item {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.reset-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
}

.reset-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Ad Spaces */
.ad-space {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.ad-placeholder {
    background: linear-gradient(45deg, var(--bg-card), var(--bg-secondary));
    border: 2px dashed var(--text-muted);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ad-banner-top .ad-placeholder {
    width: 728px;
    height: 90px;
}

.ad-banner-middle .ad-placeholder {
    width: 728px;
    height: 90px;
}

.ad-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.ad-sidebar .ad-placeholder {
    width: 300px;
    height: 250px;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-secondary);
    padding: 60px 0;
    margin-top: 80px;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: var(--transition-fast);
}

.faq-item summary:hover {
    background: var(--primary-color);
    color: white;
}

.faq-item p {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 50px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.footer-section p,
.footer-section li {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid var(--text-muted);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
}

/* Active States */
.active-session .progress-fill {
    stroke: url(#activeGradient);
    animation: pulse 2s infinite;
}

.active-session .progress-button {
    animation: glow 3s infinite alternate;
}

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

@keyframes glow {
    0% { filter: drop-shadow(0 8px 16px rgba(99, 102, 241, 0.3)); }
    100% { filter: drop-shadow(0 8px 24px rgba(99, 102, 241, 0.6)); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    