@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #1a73e8;
    --primary-glow: rgba(26, 115, 232, 0.4);
    --secondary-color: #34a853;
    --accent-color: #fbbc05;
    --danger-color: #ea4335;
    
    /* Dark Theme (Dashboard & Screen 2) */
    --dark-bg-gradient: linear-gradient(135deg, #0f1016 0%, #1a1d29 100%);
    --dark-card-bg: rgba(255, 255, 255, 0.06);
    --dark-border: rgba(255, 255, 255, 0.1);
    --dark-text: #f3f4f6;
    --dark-text-secondary: #9ca3af;
    
    /* Light Theme (Screen 1 & Screen 3) */
    --light-bg-gradient: linear-gradient(180deg, #f8faff 0%, #edf2f9 100%);
    --light-card-bg: #ffffff;
    --light-border: rgba(0, 0, 0, 0.05);
    --light-text: #1e293b;
    --light-text-secondary: #64748b;
    
    /* Device Specs */
    --phone-width: 375px;
    --phone-height: 780px;
    --border-radius-phone: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    user-select: none;
    -webkit-user-select: none;
}

body {
    background: #0b0c10;
    color: var(--dark-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Background animated mesh gradient for dashboard */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(26, 115, 232, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(147, 51, 234, 0.15) 0%, transparent 45%),
                #08090d;
    filter: blur(40px);
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    flex-direction: row;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: 380px;
    background: rgba(15, 17, 26, 0.7);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
    flex-shrink: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #70a1ff 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.logo-icon svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(to right, #ffffff, #a3b8cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.logo-text span {
    font-size: 11px;
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
}

.app-description {
    margin-bottom: 40px;
}

.app-description h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.app-description p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--dark-text-secondary);
    margin-bottom: 15px;
}

.controls-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-btn {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.control-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.control-btn svg {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
}

.author-info {
    font-size: 12px;
    color: var(--dark-text-secondary);
}

.author-info strong {
    color: #ffffff;
    display: block;
    margin-top: 4px;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-y: auto;
    padding: 40px;
}

/* View Modes */
.simulator-view-mode {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.presentation-view-mode {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
    padding: 20px 0;
}

/* Active class toggles */
.show-presentation .simulator-view-mode {
    display: none;
}
.show-presentation .presentation-view-mode {
    display: flex;
}

/* Phone Mockup Frame */
.phone-mockup {
    width: var(--phone-width);
    height: var(--phone-height);
    background: #000000;
    border-radius: var(--border-radius-phone);
    position: relative;
    padding: 12px; /* Bezel */
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6), 
                0 0 0 4px rgba(255, 255, 255, 0.1) inset,
                0 0 0 1px rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

@media (min-height: 850px) {
    .phone-mockup {
        transform: scale(1);
    }
}

/* Speaker & Camera Notch */
.phone-notch {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #000000;
    border-radius: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

.notch-camera {
    width: 12px;
    height: 12px;
    background: #101018;
    border-radius: 50%;
    border: 2px solid #20202e;
}

.notch-speaker {
    width: 45px;
    height: 4px;
    background: #1f1f1f;
    border-radius: 2px;
}

/* Phone Screen Container */
.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

/* Status Bar */
.phone-status-bar {
    height: 36px;
    padding: 12px 24px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    z-index: 90;
    pointer-events: none;
}

.status-time {
    letter-spacing: -0.2px;
}

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

.status-icons svg {
    width: 14px;
    height: 14px;
}

/* Navigation Bar (Bottom Pill) */
.phone-nav-bar {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    z-index: 100;
    pointer-events: none;
}

/* Screens Layout */
.screen-wrapper {
    flex-grow: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100% - 36px);
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 30px;
}

.screen::-webkit-scrollbar {
    width: 4px;
}
.screen::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Header standard for screens */
.screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    margin-top: 10px;
}

.back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    border: none;
    background: transparent;
}

.back-btn svg {
    width: 20px;
    height: 20px;
}

/* ---------------------------------------------------- */
/* SCREEN 1: SELECCIÓN DE OFICIO (Light Theme) */
/* ---------------------------------------------------- */
.screen-1 {
    background: var(--light-bg-gradient);
    color: var(--light-text);
}

.screen-1 .phone-status-bar {
    color: var(--light-text);
}

.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 25px;
}

.logo-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-main svg {
    width: 32px;
    height: 32px;
    fill: var(--primary-color);
}

.logo-main h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f2d59;
    letter-spacing: -0.5px;
}

.logo-main h2 span {
    color: var(--primary-color);
}

.logo-subtitle {
    font-size: 11px;
    font-weight: 500;
    color: var(--light-text-secondary);
    letter-spacing: 1px;
    margin-top: -2px;
}

.question-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    color: #1e293b;
}

/* Grid of Cards */
.oficios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.oficio-card {
    background: var(--light-card-bg);
    border: 1px solid var(--light-border);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    aspect-ratio: 1 / 1.15;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 
                0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.oficio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(26, 115, 232, 0.1), 
                0 4px 8px rgba(0, 0, 0, 0.02);
    border-color: rgba(26, 115, 232, 0.2);
}

.oficio-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    position: relative;
    transition: transform 0.3s ease;
}

.oficio-card:hover .oficio-icon-wrapper {
    transform: scale(1.1);
}

.oficio-card.panaderia .oficio-icon-wrapper { background: #fef3c7; }
.oficio-card.confeccion .oficio-icon-wrapper { background: #e0f2fe; }
.oficio-card.mecanica .oficio-icon-wrapper { background: #f3f4f6; }
.oficio-card.comercio .oficio-icon-wrapper { background: #dcfce7; }

.oficio-icon-wrapper img, .oficio-icon-wrapper svg {
    width: 36px;
    height: 36px;
}

.oficio-name {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: #334155;
    line-height: 1.3;
}

.arrow-indicator {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) translateX(5px);
    opacity: 0;
    transition: all 0.3s ease;
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.oficio-card:hover .arrow-indicator {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ---------------------------------------------------- */
/* SCREEN 2: ASISTENTE DE VOZ (Dark Theme) */
/* ---------------------------------------------------- */
.screen-2 {
    background: #0d0f14;
    color: var(--dark-text);
}

.screen-2 .phone-status-bar {
    color: var(--dark-text);
}

.screen-2 .back-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.sector-indicator {
    font-size: 18px;
    font-weight: 500;
    color: var(--dark-text-secondary);
    text-align: center;
    margin-top: 10px;
}

.sector-name {
    color: #ffffff;
    font-weight: 700;
    display: block;
    font-size: 22px;
    margin-top: 4px;
}

/* Mic Interactive Section */
.mic-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    position: relative;
}

.pulse-ring {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.3) 0%, transparent 70%);
    animation: pulse 2s infinite ease-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mic-section.recording .pulse-ring {
    opacity: 1;
}

.mic-button {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e70e6 0%, #104ba3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(26, 115, 232, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    outline: none;
}

.mic-button:active, .mic-section.recording .mic-button {
    transform: scale(0.92);
    box-shadow: 0 5px 15px rgba(26, 115, 232, 0.6), 
                0 0 20px rgba(26, 115, 232, 0.8);
    background: linear-gradient(135deg, #2f80ed 0%, #1e70e6 100%);
}

.mic-button svg {
    width: 42px;
    height: 42px;
    fill: #ffffff;
    transition: transform 0.3s ease;
}

.mic-section.recording .mic-button svg {
    transform: scale(1.05);
}

/* Waveform Visualizer */
.waveform-container {
    width: 85%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 15px;
    margin-bottom: 15px;
    overflow: hidden;
}

.wave-bar {
    width: 3px;
    height: 6px;
    background: linear-gradient(to top, #1e70e6, #60a5fa);
    border-radius: 3px;
    transition: height 0.1s ease;
}

/* Sound Wave animation for recording state */
.mic-section.recording .wave-bar {
    animation: waveJump 1.2s ease-in-out infinite alternate;
}

.mic-section.recording .wave-bar:nth-child(2n) { animation-delay: 0.15s; }
.mic-section.recording .wave-bar:nth-child(3n) { animation-delay: 0.3s; }
.mic-section.recording .wave-bar:nth-child(4n) { animation-delay: 0.45s; }
.mic-section.recording .wave-bar:nth-child(5n) { animation-delay: 0.6s; }

.mic-instruction {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-text-secondary);
    text-align: center;
    margin-bottom: 25px;
}

.mic-subtitle-live {
    font-size: 14px;
    color: #60a5fa;
    text-align: center;
    height: 20px;
    margin-top: 10px;
    font-weight: 400;
    font-style: italic;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mic-section.recording .mic-subtitle-live {
    opacity: 1;
}

/* Voice Command Shortcuts */
.voice-shortcuts-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 12px;
    padding-left: 5px;
}

.shortcuts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shortcut-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shortcut-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(26, 115, 232, 0.3);
    transform: translateX(4px);
}

.shortcut-item.active {
    background: rgba(26, 115, 232, 0.1);
    border-color: rgba(26, 115, 232, 0.5);
    box-shadow: 0 0 15px rgba(26, 115, 232, 0.15);
}

.shortcut-item.active::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #60a5fa;
    border-radius: 50%;
    box-shadow: 0 0 8px #60a5fa;
}

/* ---------------------------------------------------- */
/* SCREEN 3: SOLUCIÓN SUGERIDA (Light/Blue Theme) */
/* ---------------------------------------------------- */
.screen-3 {
    background: linear-gradient(180deg, #f0f5fc 0%, #e2ebf7 100%);
    color: var(--light-text);
}

.screen-3 .phone-status-bar {
    color: var(--light-text);
}

.screen-3 .back-btn {
    color: var(--light-text);
    background: rgba(0, 0, 0, 0.04);
}

.solucion-badge-container {
    text-align: center;
    margin-top: 5px;
    margin-bottom: 20px;
}

.solucion-lbl {
    font-size: 13px;
    font-weight: 500;
    color: var(--light-text-secondary);
}

.solucion-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e3a8a;
    margin-top: 2px;
}

/* Shield badge verification row */
.verificacion-row {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
    gap: 10px;
}

.verif-info {
    display: flex;
    flex-direction: column;
}

.verif-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.verif-subtitle {
    font-size: 11px;
    color: var(--light-text-secondary);
    margin-top: 1px;
}

.shield-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.shield-badge svg {
    width: 11px;
    height: 11px;
    fill: currentColor;
}

/* Accordion Accordance List */
.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.accordion-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-header {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
    background: #ffffff;
    transition: background 0.2s ease;
}

.accordion-header:hover {
    background: #fafbfe;
}

.accordion-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-header-left svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.accordion-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    color: var(--light-text-secondary);
}

/* Open states */
.accordion-item.open .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafbfe;
    border-top: 0 solid rgba(0, 0, 0, 0.03);
    padding: 0 18px;
}

.accordion-item.open .accordion-content {
    border-top-width: 1px;
    padding: 14px 18px;
}

.accordion-content p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--light-text-secondary);
}

/* Copy Result Inner Card Data */
.result-data-box {
    background: #0f172a;
    color: #38bdf8;
    padding: 12px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 11px;
    line-height: 1.6;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    word-break: break-all;
    position: relative;
}

.btn-copy-mini {
    position: absolute;
    right: 8px;
    top: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #ffffff;
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-copy-mini:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* Big Glowing Action Button */
.btn-solucion-glowing {
    width: 100%;
    background: linear-gradient(135deg, #1e70e6 0%, #0f52ba 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 18px;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(30, 112, 230, 0.35),
                0 0 12px rgba(30, 112, 230, 0.5);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-solucion-glowing:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(30, 112, 230, 0.5),
                0 0 20px rgba(30, 112, 230, 0.7);
    filter: brightness(1.05);
}

.btn-solucion-glowing:active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px rgba(30, 112, 230, 0.4);
}

/* Glow reflection effect */
.btn-solucion-glowing::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    animation: shine 4s infinite ease-in-out;
}

/* ---------------------------------------------------- */
/* BACKDROP OVERLAY FOR REAL CALCULATOR */
/* ---------------------------------------------------- */
.calculator-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 9, 13, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calculator-modal.open {
    opacity: 1;
    visibility: visible;
}

.calculator-card {
    width: 420px;
    max-width: 90%;
    background: rgba(22, 26, 38, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(30, 112, 230, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.calculator-modal.open .calculator-card {
    transform: scale(1);
}

.calc-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.calc-title p {
    font-size: 12px;
    color: var(--dark-text-secondary);
    margin-top: 2px;
}

.btn-close-calc {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-calc:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.calc-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
    color: #a3b8cc;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-left {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--dark-text-secondary);
    pointer-events: none;
}

.calc-input {
    width: 100%;
    padding: 12px 14px 12px 38px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.calc-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(26, 115, 232, 0.03);
    box-shadow: 0 0 10px rgba(26, 115, 232, 0.2);
}

.input-suffix {
    position: absolute;
    right: 14px;
    font-size: 12px;
    color: var(--dark-text-secondary);
    font-weight: 500;
    pointer-events: none;
}

/* Results Display Box */
.calc-results {
    background: rgba(26, 115, 232, 0.05);
    border: 1px solid rgba(26, 115, 232, 0.15);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.result-row .lbl {
    color: var(--dark-text-secondary);
}

.result-row .val {
    font-weight: 600;
    color: #ffffff;
}

.result-row.total-row {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    margin-top: 4px;
    font-size: 15px;
}

.result-row.total-row .lbl {
    font-weight: 700;
    color: #ffffff;
}

.result-row.total-row .val {
    color: #60a5fa;
    font-weight: 700;
    font-size: 18px;
}

.btn-action-calc {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-action-calc:hover {
    background: #2b82f6;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

/* ---------------------------------------------------- */
/* ANIMATIONS DEFINITIONS */
/* ---------------------------------------------------- */
@keyframes pulse {
    0% {
        transform: scale(0.85);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@keyframes waveJump {
    0% {
        height: 6px;
    }
    100% {
        height: 40px;
    }
}

@keyframes shine {
    0% {
        left: -60%;
    }
    15% {
        left: 140%;
    }
    100% {
        left: 140%;
    }
}

/* Presentation Grid Layout overrides */
.phone-presentation-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.phone-card-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dark-text-secondary);
    letter-spacing: 1.5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Toast Notification Styles */
.toast-notif {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notif.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    color: var(--secondary-color);
}

/* Mobile responsive fixes */
@media (max-width: 900px) {
    .dashboard {
        flex-direction: column;
        overflow-y: auto;
        height: auto;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        height: auto;
        padding: 20px;
    }
    
    .main-content {
        padding: 20px;
        min-height: calc(100vh - 250px);
        height: auto;
        overflow-y: visible;
    }
    
    .simulator-view-mode {
        height: auto;
    }
    
    .phone-mockup {
        transform: scale(1);
        width: 100%;
        max-width: 375px;
        height: 720px;
    }
    
    .presentation-view-mode {
        gap: 40px;
    }
}
