/* ============================================
   CLOUDFLARE SALES COPILOT - COMPLETE STYLES
   ============================================ */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- CSS RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
}

/* ============================================
   MAIN SEARCH CONTAINER
   ============================================ */
.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.logo-img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.brand-divider {
    width: 2px;
    height: 40px;
    background: rgba(255,255,255,0.3);
}

.app-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.search-wrapper {
    background: white;
    padding: 50px 60px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 800px;
}

.search-box {
    width: 100%;
    padding: 18px 24px;
    font-size: 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.search-box:focus {
    border-color: #F6821F;
    box-shadow: 0 0 0 4px rgba(246, 130, 31, 0.1);
}

.search-box::placeholder {
    color: #9ca3af;
}

.btn-action {
    background: linear-gradient(135deg, #F6821F 0%, #FBAD41 100%);
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(246, 130, 31, 0.3);
}

/* ============================================
   LOADER
   ============================================ */
.loader {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    margin: 0 auto 15px;
    overflow: hidden;
    position: relative;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #F6821F, #FBAD41);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

.loading-text {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   USER MENU & AVATAR
   ============================================ */
.user-menu-container {
    position: relative;
}

.nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.nav-avatar:hover {
    transform: scale(1.05);
}

.profile-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 280px;
    display: none;
    overflow: hidden;
    z-index: 1000;
}

.profile-dropdown.show {
    display: block;
}

.dropdown-header {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.big-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 12px;
}

.user-name {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.user-email {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.dropdown-footer {
    padding: 16px;
}

.sign-out-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background: #f3f4f6;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.sign-out-btn:hover {
    background: #e5e7eb;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    text-align: center;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.version-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.footer-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: white;
}

/* ============================================
   SIDEBAR - X-STYLE PREMIUM
   ============================================ */
.hamburger-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    cursor: pointer;
    z-index: 3000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    backdrop-filter: blur(10px);
}

.hamburger-btn:hover {
    background: rgba(255,255,255,0.3);
}

.hamburger-icon {
    width: 24px;
    height: 24px;
    fill: white;
    transition: fill 0.3s;
}

body.menu-open .hamburger-icon {
    fill: #FFFFFF;
}

/* Results page: dark icon on white button */
.header-nav .hamburger-btn {
    background: white;
    border: 1px solid #e5e7eb;
    position: static;
    width: 40px;
    height: 40px;
    margin-right: 12px;
    backdrop-filter: none;
}

.header-nav .hamburger-btn:hover {
    background: #f3f4f6;
}

.header-nav .hamburger-icon {
    fill: #374151;
}

.header-nav .hamburger-btn:hover .hamburger-icon {
    fill: #1f2937;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    background-color: #000000;
    z-index: 2500;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 50px rgba(0,0,0,0.3);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px;
}

.sidebar-section-label {
    font-size: 13px;
    font-weight: 700;
    color: #71767B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 30px 15px 10px 15px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    text-decoration: none;
    color: #E7E9EA;
    transition: background 0.2s;
    margin-bottom: 4px;
    cursor: pointer;
}

.history-item:hover {
    background-color: #181818;
}

.item-icon {
    width: 24px;
    height: 24px;
    fill: #E7E9EA;
    flex-shrink: 0;
}

.item-name {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    line-height: 1.2;
}

.pinned-indicator {
    width: 8px;
    height: 8px;
    background-color: #F6821F;
    border-radius: 50%;
    flex-shrink: 0;
}

.item-actions {
    display: flex;
    align-items: center;
}

.menu-trigger {
    color: #71767B;
    opacity: 0;
    font-size: 18px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.history-item:hover .menu-trigger {
    opacity: 1;
}

.menu-trigger:hover {
    background: rgba(246, 130, 31, 0.2);
    color: #F6821F;
}

/* ============================================
   CONTEXT MENU - DARK THEME
   ============================================ */
.context-menu {
    position: fixed;
    background: #000000;
    border: 1px solid #2F3336;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    border-radius: 12px;
    width: 200px;
    z-index: 3500;
    display: none;
    padding: 8px 0;
}

.context-menu.show {
    display: block;
}

.ctx-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #E7E9EA;
    transition: background 0.1s;
}

.ctx-item:hover {
    background-color: #16181C;
}

.ctx-item svg {
    width: 18px;
    height: 18px;
    stroke: #F6821F;
    fill: none;
    stroke-width: 2;
}

.ctx-divider {
    height: 1px;
    background: #2F3336;
    margin: 4px 0;
}

.ctx-item.delete {
    color: #F4212E;
}

.ctx-item.delete svg {
    stroke: #F4212E;
}

/* ============================================
   RESULTS PAGE STYLES
   ============================================ */
.results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px 40px;
}

.result-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.result-header {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.company-info h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.company-ticker {
    font-size: 14px;
    opacity: 0.7;
    font-weight: 500;
}

.result-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.8;
}

.result-body {
    padding: 32px;
}

.result-body h1, .result-body h2, .result-body h3 {
    color: #1f2937;
    margin-top: 24px;
    margin-bottom: 12px;
}

.result-body h2 {
    font-size: 20px;
    border-bottom: 2px solid #F6821F;
    padding-bottom: 8px;
}

.result-body h3 {
    font-size: 16px;
    color: #4b5563;
}

.result-body p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 16px;
}

.result-body ul, .result-body ol {
    margin-left: 24px;
    margin-bottom: 16px;
    color: #4b5563;
}

.result-body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.result-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.result-body th, .result-body td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.result-body th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.result-body tr:hover {
    background: #f9fafb;
}

.result-body code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #d97706;
}

.result-body blockquote {
    border-left: 4px solid #F6821F;
    padding-left: 16px;
    margin: 16px 0;
    color: #6b7280;
    font-style: italic;
}

.result-body strong {
    color: #1f2937;
}

/* Back button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    transition: background 0.2s;
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* ============================================
   HEADER NAV BAR (Results Page)
   ============================================ */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-logo {
    height: 32px;
}

.nav-app-name {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    color: #F6821F;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(246, 130, 31, 0.1);
}

/* ============================================
   REPORT CONTAINER & CARDS
   ============================================ */
.report-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 24px 40px;
}

.report-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 32px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.report-header-lockup {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    padding: 28px 32px;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.report-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}

.ticker-tag {
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.meta-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    opacity: 0.8;
}

.meta-stats .divider {
    opacity: 0.4;
}

.cache-badge {
    background: #10b981;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
}

/* ============================================
   TABS
   ============================================ */
.tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.tab-link {
    padding: 16px 24px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.tab-link:hover {
    color: #1f2937;
    background: #f3f4f6;
}

.tab-link.active {
    color: #F6821F;
    border-bottom-color: #F6821F;
    background: white;
}

.tab-link .badge {
    background: #e5e7eb;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 8px;
}

.tab-link.active .badge {
    background: rgba(246, 130, 31, 0.15);
    color: #F6821F;
}

.tab-content {
    display: none;
}

/* ============================================
   REPORT CONTENT STYLING
   ============================================ */
.content {
    padding: 32px;
    line-height: 1.7;
    color: #374151;
}

.content h1 {
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #F6821F;
}

.content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 28px 0 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
}

.content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #374151;
    margin: 24px 0 12px;
}

.content h4 {
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
    margin: 20px 0 10px;
}

.content p {
    margin-bottom: 16px;
}

.content ul, .content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.content li {
    margin-bottom: 8px;
}

.content strong {
    color: #1f2937;
    font-weight: 600;
}

.content em {
    color: #6b7280;
}

.content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #d97706;
    font-family: 'Monaco', 'Menlo', monospace;
}

.content pre {
    background: #1f2937;
    color: #e5e7eb;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 13px;
    margin: 16px 0;
}

.content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.content blockquote {
    border-left: 4px solid #F6821F;
    padding: 12px 20px;
    margin: 16px 0;
    background: #fffbeb;
    color: #92400e;
    border-radius: 0 8px 8px 0;
}

.content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 24px 0;
}

/* Tables in content */
.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.content th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 2px solid #e5e7eb;
}

.content td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.content tr:last-child td {
    border-bottom: none;
}

.content tr:hover {
    background: #f9fafb;
}

/* Subdomain list */
.subdomain-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 32px;
}

.subdomain-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.subdomain-list a {
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
    font-family: 'Monaco', 'Menlo', monospace;
}

.subdomain-list a:hover {
    text-decoration: underline;
}

/* Copy button */
.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
    opacity: 0.6;
    transition: opacity 0.2s;
    vertical-align: middle;
}

.copy-btn:hover {
    opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .search-wrapper {
        padding: 30px 24px;
    }

    .brand-lockup {
        flex-direction: column;
        gap: 12px;
    }

    .brand-divider {
        width: 40px;
        height: 2px;
    }

    .sidebar {
        width: 100%;
    }

    .report-container {
        padding: 80px 16px 20px;
    }

    .header-nav {
        padding: 0 16px;
    }

    .nav-app-name {
        display: none;
    }

    .content {
        padding: 20px;
    }

    .subdomain-list {
        columns: 1;
    }

    .tabs {
        overflow-x: auto;
    }

    .tab-link {
        padding: 14px 16px;
        white-space: nowrap;
    }
}

/* ============================================
   EMAIL REPORT FEATURE
   ============================================ */

/* Email button in meta-stats */
.email-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
    vertical-align: middle;
    margin-left: 8px;
}

.email-btn:hover {
    background: rgba(246, 130, 31, 0.1);
}

.email-btn svg {
    width: 18px;
    height: 18px;
    stroke: #F6821F;
    fill: none;
    stroke-width: 2;
    vertical-align: middle;
}

/* Email Modal Overlay */
.email-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5000;
    align-items: center;
    justify-content: center;
}

.email-modal.show {
    display: flex;
}

/* Modal Content Box */
.email-modal-content {
    background: white;
    padding: 0;
    border-radius: 16px;
    width: 420px;
    max-width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.2s ease-out;
}

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

/* Modal Header */
.email-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.email-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #1f2937;
}

/* Company Name Display */
.email-company-name {
    padding: 16px 24px 0;
    font-weight: 600;
    color: #F6821F;
    margin: 0;
    font-size: 15px;
}

/* Form Groups */
.email-form-group {
    padding: 16px 24px;
}

.email-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.email-form-group input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.email-form-group input[type="email"]:focus {
    outline: none;
    border-color: #F6821F;
    box-shadow: 0 0 0 3px rgba(246, 130, 31, 0.1);
}

/* Format Radio Options */
.format-options {
    display: flex;
    gap: 16px;
}

.format-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    font-size: 14px;
    color: #374151;
}

.format-option input {
    accent-color: #F6821F;
    width: 16px;
    height: 16px;
}

/* Modal Actions Footer */
.email-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.btn-cancel {
    padding: 10px 20px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    transition: background 0.2s;
}

.btn-cancel:hover {
    background: #f3f4f6;
}

.btn-send {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #F6821F, #FBAD41);
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.2s;
}

.btn-send:hover {
    opacity: 0.9;
}

/* Status Messages */
.email-status {
    padding: 0 24px 16px;
    font-size: 13px;
    text-align: center;
    min-height: 20px;
}

.email-status.success {
    color: #10b981;
}

.email-status.error {
    color: #ef4444;
}

/* Recurring/Schedule Options */
.recurring-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    font-size: 14px;
    color: #374151;
}

.recurring-label input[type="checkbox"] {
    accent-color: #F6821F;
    width: 16px;
    height: 16px;
}

.schedule-options {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-left: 24px;
}

/* ============================================
   DAY PICKER (Google Calendar Style)
   ============================================ */
.day-picker {
    margin-top: 16px;
    padding: 0 24px;
}

.day-picker label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.day-buttons {
    display: flex;
    gap: 6px;
}

.day-btn {
    width: 38px;
    height: 38px;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-btn:hover {
    border-color: #F6821F;
    color: #F6821F;
}

.day-btn.selected {
    background: #F6821F;
    border-color: #F6821F;
    color: white;
}

/* ============================================
   TIME PICKER
   ============================================ */
.time-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 0 24px;
}

.time-picker label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.time-picker select {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: white;
    cursor: pointer;
    min-width: 120px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.time-picker select:focus {
    outline: none;
    border-color: #F6821F;
    box-shadow: 0 0 0 3px rgba(246, 130, 31, 0.1);
}

.timezone-label {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

/* ============================================
   SUBSCRIPTION ITEMS IN SIDEBAR
   ============================================ */
.subscription-item {
    position: relative;
}

.subscription-item .item-name {
    padding-left: 8px;
}

.subscription-item .menu-trigger {
    padding: 6px 8px;
}

/* ============================================
   DETAILS MODAL
   ============================================ */
.details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 5000;
    align-items: center;
    justify-content: center;
}

.details-modal.show {
    display: flex;
}

.details-modal-content {
    background: white;
    border-radius: 16px;
    width: 440px;
    max-width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.2s ease-out;
}

.details-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.details-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.details-body {
    padding: 24px;
}

.details-company {
    font-size: 22px;
    font-weight: 700;
    color: #F6821F;
    margin: 0 0 20px 0;
}

.details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

.details-row:last-child {
    border-bottom: none;
}

.details-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.details-value {
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
}

.details-modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.btn-delete {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #fee2e2;
    color: #dc2626;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-delete:hover {
    background: #fecaca;
}

.btn-edit {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #F6821F, #FBAD41);
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.2s;
}

.btn-edit:hover {
    opacity: 0.9;
}

/* Edit mode in details modal */
.details-edit-section {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    background: #fafbfc;
}

.details-edit-section .day-picker {
    padding: 0;
    margin-top: 0;
    margin-bottom: 16px;
}

.details-edit-section .time-picker {
    padding: 0;
    margin-top: 0;
}

/* Subscription context menu */
#subCtxMenu {
    position: fixed;
    background: #000000;
    border: 1px solid #2F3336;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    border-radius: 12px;
    width: 180px;
    z-index: 3500;
    display: none;
    padding: 8px 0;
}

#subCtxMenu.show {
    display: block;
}

/* Confirm delete modal */
.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 6000;
    align-items: center;
    justify-content: center;
}

.confirm-modal.show {
    display: flex;
}

.confirm-modal-content {
    background: white;
    border-radius: 12px;
    width: 360px;
    max-width: 90%;
    padding: 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.confirm-modal-content p {
    font-size: 16px;
    color: #374151;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.confirm-modal-content strong {
    color: #F6821F;
}

.confirm-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-confirm-cancel {
    padding: 10px 24px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.btn-confirm-delete {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    background: #dc2626;
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}
