/* FlexTV Website Styles */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #050505; /* Dark base matching animated_bkg.css */
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(0, 153, 255, 0.2) 0%, transparent 60%), /* Blue */
        radial-gradient(circle at 50% 50%, rgba(0, 255, 0, 0.15) 0%, transparent 60%), /* Green */
        radial-gradient(circle at 50% 50%, rgba(20, 20, 30, 0.5) 0%, transparent 60%), /* Dark */
        radial-gradient(circle at 50% 50%, rgba(0, 153, 255, 0.15) 0%, transparent 60%), /* Blue */
        radial-gradient(circle at 50% 50%, rgba(0, 255, 0, 0.1) 0%, transparent 60%); /* Green */
    background-size: 150% 150%, 150% 150%, 150% 150%, 150% 150%, 150% 150%;
    background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%, 50% 50%;
    animation: blob-animation 60s ease-in-out infinite alternate;
    min-height: 100vh;
    color: #e0e0e0;
    background-attachment: fixed;
}

/* Background Image - Animated Pastel Gradient (Deprecated, moved to body) */
.bg-image {
    display: none;
}

@keyframes blob-animation {
    0% {
        background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%, 50% 50%;
    }
    25% {
        background-position: 100% 20%, 0% 80%, 20% 0%, 80% 100%, 40% 60%;
    }
    50% {
        background-position: 50% 100%, 50% 0%, 100% 50%, 0% 50%, 60% 40%;
    }
    75% {
        background-position: 0% 80%, 100% 20%, 80% 0%, 20% 100%, 50% 50%;
    }
    100% {
        background-position: 100% 100%, 0% 0%, 0% 100%, 100% 0%, 50% 50%;
    }
}

/* Header Styles */
.header {
    background: #1e1e1e;
    border-bottom: 2px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
    position: relative;
}

.header .animated-bg-container {
    z-index: 0;
    pointer-events: none;
}

.header .uk-navbar {
    z-index: 10;
}

.global-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.70);
    backdrop-filter: blur(8px);
    transition: opacity 240ms ease-in-out;
}

.global-loader--hidden {
    opacity: 0;
}

.global-loader__inner {
    position: relative;
    width: 200px;
    height: 200px;
}

.gegga {
    width: 0;
}

.global-loader .snurra {
    filter: url(#global_gegga);
}

.stopp1 {
    stop-color: #f700a8;
}

.stopp2 {
    stop-color: #ff8000;
}

.global-loader .halvan {
    animation: Snurra1 10s infinite linear;
    stroke-dasharray: 180 800;
    fill: none;
    stroke: url(#global_gradient);
    stroke-width: 23;
    stroke-linecap: round;
}

.global-loader .strecken {
    animation: Snurra1 3s infinite linear;
    stroke-dasharray: 26 54;
    fill: none;
    stroke: url(#global_gradient);
    stroke-width: 23;
    stroke-linecap: round;
}

.global-loader .skugga {
    filter: blur(5px);
    opacity: 0.3;
    position: absolute;
    transform: translate(3px, 3px);
}

@keyframes Snurra1 {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -403px; }
}

/* Prevent FOUC and layout shifts */
.header * {
    box-sizing: border-box;
}

/* Hide all dropdowns initially to prevent flash */
.uk-navbar-dropdown {
    display: none !important;
}

.header .uk-navbar-dropdown {
    display: block !important;
}

/* Preload navbar structure to prevent jumping */
.header .uk-navbar {
    box-sizing: border-box;
}

.header .uk-navbar-container {
    box-sizing: border-box;
    min-height: 60px;
}

/* Force immediate positioning for username area */
.header .uk-navbar-right {
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    right: 20px !important;
    top: 0 !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
}

/* Override UIkit's positioning completely */
.header .uk-navbar-right .uk-navbar-nav {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.header .uk-navbar {
    padding: 0 180px 0 20px; /* Add right padding for absolutely positioned username */
    min-height: 60px;
    position: relative;
}

/* Ensure navbar container doesn't interfere with absolute positioning */
.header .uk-navbar-container {
    overflow: visible !important;
}

/* Prevent layout shift for dropdown positioning */
.header .uk-navbar-dropdown {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    min-width: 200px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.header .uk-navbar-nav > li:hover .uk-navbar-dropdown {
    visibility: visible;
    opacity: 1;
}

/* Force UIkit dropdown positioning */
.header [uk-dropdown] {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
}

/* Ensure navbar container has proper positioning context */
.header {
    position: relative;
}

.header .uk-navbar-container {
    position: relative;
}

.header .uk-navbar-brand {
    color: #fff !important;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 60px;
}

/* Ensure navbar items are properly aligned */
.header .uk-navbar-nav {
    height: 60px;
    display: flex;
    align-items: center;
}

.header .uk-navbar-nav > li {
    position: relative;
}

.header .uk-navbar-right {
    position: relative;
    min-width: 150px;
}

/* Prevent username jumping by ensuring stable positioning */
.header .uk-navbar-right .uk-navbar-nav > li > a {
    display: flex;
    align-items: center;
    white-space: nowrap;
    min-width: 120px;
    justify-content: flex-end;
}

/* Ensure the username container maintains position */
.header .uk-navbar-right .uk-navbar-nav > li {
    position: relative;
    display: flex;
    align-items: center;
}

.header .uk-navbar-nav > li > a {
    color: #ccc !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.header .uk-navbar-nav > li > a:hover {
    color: #fff !important;
    background: #333;
    transform: translateY(-2px);
}

.header .uk-navbar-nav > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    transition: left 0.3s ease;
}

.header .uk-navbar-nav > li > a:hover::before {
    left: 0;
}

/* Footer Styles */
.footer {
    background: transparent !important;
    border: none !important;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    padding: 20px 0;
    margin-top: 60px;
    font-weight: 500;
}

/* Main Content */
.main-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin: 40px 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cards */
.uk-card {
    background: #fff;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Allow custom backgrounds for specific cards - ensure they don't inherit animation */
.uk-card[style*="background"] {
    /* No special rule needed, inline styles will take precedence naturally */
}

/* Buttons */
.uk-button {
    border-radius: 6px !important;
    text-transform: none !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    height: 45px !important;
    line-height: 43px !important; /* Adjust for border */
    padding: 0 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.uk-button-small {
    height: 35px !important;
    line-height: 33px !important;
    padding: 0 15px !important;
    font-size: 0.85rem !important;
}

.panel-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 40px;
    width: 40px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(0,0,0,0.30);
    color: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    overflow: hidden;
    transition: width 220ms ease-in-out, padding 220ms ease-in-out, background 220ms ease-in-out, border-color 220ms ease-in-out;
    cursor: pointer;
}

.panel-add-btn:hover {
    width: 170px;
    padding: 0 14px;
    background: rgba(0,0,0,0.42);
    border-color: rgba(255,255,255,0.22);
}

.panel-add-btn__text {
    white-space: nowrap;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 180ms ease-in-out, transform 180ms ease-in-out, max-width 220ms ease-in-out;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.panel-add-btn:hover .panel-add-btn__text {
    max-width: 120px;
    opacity: 1;
    transform: translateX(0);
}

.uk-icon-button {
    height: 36px !important;
    width: 36px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    line-height: 36px !important;
}

.uk-button-primary {
    background: #6c5ce7 !important; /* Dark Pastel Purple */
    border: none !important;
    transition: all 0.3s ease;
    color: #fff !important;
    box-shadow: 0 4px 6px rgba(108, 92, 231, 0.2);
}

.uk-button-primary:hover {
    background: #5b4cc4 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(108, 92, 231, 0.3);
}

.uk-button-primary::before {
    display: none !important;
}

.uk-button-secondary {
    background: #00b894 !important; /* Dark Pastel Green */
    border: none !important;
    transition: all 0.3s ease;
    color: #fff !important;
    box-shadow: 0 4px 6px rgba(0, 184, 148, 0.2);
}

.uk-button-secondary:hover {
    background: #00a383 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 184, 148, 0.3);
}

.uk-button-secondary::before {
    display: none !important;
}

.uk-button-danger {
    background: #ff7675 !important; /* Dark Pastel Red */
    border: none !important;
    transition: all 0.3s ease;
    color: #fff !important;
    box-shadow: 0 4px 6px rgba(255, 118, 117, 0.2);
}

.uk-button-danger:hover {
    background: #d63031 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(214, 48, 49, 0.3);
}

.uk-button-danger::before {
    display: none !important;
}

.uk-button-default {
    background: #dfe6e9 !important; /* Light Gray */
    color: #2d3436 !important;
    border: 1px solid #b2bec3 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.uk-button-default:hover {
    background: #b2bec3 !important;
    color: #2d3436 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Forms */
.uk-input, .uk-textarea, .uk-select {
    background: #fff !important;
    border: 2px solid #ddd !important;
    transition: all 0.3s ease;
}

.uk-input:focus, .uk-textarea:focus, .uk-select:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px #e6eaff !important;
    transform: translateY(-2px);
}

/* Modals */
.uk-modal-dialog {
    background: #fff !important;
    border-radius: 20px;
}

/* Tables */
.uk-table {
    background: #fff !important;
}

.uk-table th {
    background: #f0f2ff !important;
    color: #333 !important;
}

.uk-table tr:hover {
    background: #f8f9ff !important;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Wyłącz podświetlenie (niebieski pasek) na tabelach */
table, .table, .dataTable, .table-responsive, .uk-table {
  outline: none !important;
}
table:focus, table:focus-visible, table:focus-within,
.table:focus, .table:focus-visible, .table:focus-within,
.table:hover, table:hover, .dataTable:hover,
.uk-table:focus, .uk-table:focus-visible, .uk-table:focus-within,
.uk-table:hover {
  outline: none !important;
  box-shadow: none !important;   /* usuwa dolny/prawy pasek jeśli był robiony inset-em */
}
.table-hover > tbody > tr:hover,
table tbody tr:hover,
.uk-table tbody tr:hover {
  background-color: inherit !important;  /* brak efektu przy najechaniu na wiersz */
}

/* Ensure no pseudo-elements create the bar */
.uk-table tr:focus::after, .uk-table tr:active::after, .uk-table tr:focus-within::after,
.uk-table tr:focus::before, .uk-table tr:active::before, .uk-table tr:focus-within::before {
    display: none !important;
    content: none !important;
}

/* Alerts */
.uk-alert-success {
    background: #e8f5e8 !important;
    border: 1px solid #4caf50 !important;
    color: #2e7d32 !important;
}

.uk-alert-danger {
    background: #ffeaea !important;
    border: 1px solid #f44336 !important;
    color: #c62828 !important;
}

/* Animations */

/* Pastel Color Scheme */
.pastel-blue {
    background: #e6f3ff !important;
}

.pastel-green {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 25%, #f0fdf4 50%, #ecfdf5 75%, #f0f9ff 100%) !important;
    border: 1px solid rgba(102, 126, 234, 0.1) !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    position: relative;
    overflow: hidden;
}

.pastel-green::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    animation: cardShimmer 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cardShimmer {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.pastel-pink {
    background: #ffe6f0 !important;
}

.pastel-yellow {
    background: #fffee6 !important;
}

.pastel-purple {
    background: linear-gradient(135deg, #e8d5ff 0%, #f0e6ff 50%, #e8d5ff 100%) !important;
}



.pastel-cyan {
    background: linear-gradient(135deg, #ccf7ff 0%, #e6fbff 50%, #ccf7ff 100%) !important;
    border: 1px solid rgba(0, 191, 255, 0.2) !important;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.1) !important;
    position: relative;
    overflow: hidden;
}

.pastel-cyan::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 191, 255, 0.05), transparent);
    animation: cardShimmer 7s ease-in-out infinite;
    pointer-events: none;
}

.pastel-lavender {
    background: linear-gradient(135deg, #f0e6ff 0%, #f8f2ff 50%, #f0e6ff 100%) !important;
    border: 1px solid rgba(147, 112, 219, 0.2) !important;
    box-shadow: 0 4px 15px rgba(147, 112, 219, 0.1) !important;
    position: relative;
    overflow: hidden;
}

.pastel-lavender::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(147, 112, 219, 0.05), transparent);
    animation: cardShimmer 8s ease-in-out infinite;
    pointer-events: none;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ddd;
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Subscription Progress Styles */
.subscription-days {
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    color: #667eea !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 5px !important;
}

.subscription-label {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.uk-progress {
    height: 18px !important;
    background: #e0e0e0 !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.uk-progress::-webkit-progress-bar {
    background: #e0e0e0;
    border-radius: 10px;
}

.uk-progress::-webkit-progress-value {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    animation: progressGlow 2s ease-in-out infinite alternate;
}

.uk-progress::-moz-progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    animation: progressGlow 2s ease-in-out infinite alternate;
}

@keyframes progressGlow {
    0% {
        box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
    }
    100% {
        box-shadow: 0 0 15px rgba(102, 126, 234, 0.8), 0 0 25px rgba(118, 75, 162, 0.6);
    }
}

.usdt-price {
    display: block;
    margin-top: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #16a085;
}

.usdt-price.usdt-error {
    color: #c0392b;
}

/* Mobile hamburger menu styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e1e1e;
    border-top: 1px solid #333;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    border-bottom: 1px solid #333;
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    display: block;
    padding: 15px 20px;
    color: #ccc !important;
    text-decoration: none;
    transition: background 0.3s ease;
}

.mobile-menu a:hover {
    background: #333;
    color: #fff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        margin: 2px !important;
        padding: 2px !important;
    }
    
    .uk-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .header .uk-navbar {
        padding: 0 10px;
        position: relative;
    }
    
    /* Calendar Fix for Mobile */
    .calendar-wrapper {
        transform: scale(0.85);
        transform-origin: center top;
        margin-bottom: -40px;
    }

    /* TV Channels Mobile Grid */
    .picon-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 5px !important;
    }
    
    .picon-card {
        padding: 5px !important;
        min-height: auto !important;
    }
    
    .picon-card img {
        max-height: 50px !important;
        margin-bottom: 5px !important;
    }
    
    .picon-card .uk-text-large {
        font-size: 0.7rem !important;
        line-height: 1.1 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .picon-card span {
        font-size: 8px !important;
        padding: 2px 4px !important;
        min-width: auto !important;
    }

    /* TV Channels Buttons Fix */
    .tv-channels-header-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .tv-channels-header-buttons .uk-button {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        font-size: 0.8rem;
        padding: 0 10px;
    }

    /* Profile Avatar Fix */
    .avatar-upload-group {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .avatar-upload-group input[type="text"] {
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    .avatar-upload-group .uk-button {
        margin-left: 0 !important;
        width: 100%;
    }

    
    .header .uk-navbar-center {
        display: none;
    }

    .header .uk-navbar-right {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header .uk-navbar-brand {
        font-size: 1.2rem;
        padding-left: 0;
    }
    
    .header .uk-navbar-brand img {
        width: auto;
        height: 40px;
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .chat-main {
        margin: 0;
        padding: 0;
        border-radius: 0;
    }

    .chat-main .uk-container-large {
        max-width: none;
        padding: 0;
    }

    .chat-main .uk-margin-large-top.uk-margin-large-bottom {
        margin: 0;
    }

    .chat-main .chat-card-ios.chat-card-limit {
        border-radius: 0;
        box-shadow: none;
        height: calc(100vh - 60px);
        max-height: none;
    }

    .chat-main .chat-user-column {
        height: 100%;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Subscription warning styles */
.subscription-warning {
    background: linear-gradient(135deg, #ff7f7f, #ffb3ba);
    border: 1px solid #ff6b6b;
    color: #333;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 10px;
}

.subscription-warning .warning-content {
    flex: 1;
    padding-right: 15px;
}

.subscription-warning .warning-qr {
    flex-shrink: 0;
    text-align: center;
}

.subscription-warning h5 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.subscription-warning .warning-content p {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

/* Email form styles - UIkit compatible */
.email-form-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.email-form-card .uk-card-title {
    color: #495057;
    font-weight: 600;
}

.email-form-card .uk-form-label {
    color: #495057;
    font-weight: 500;
    margin-bottom: 8px;
}

.email-form-card .uk-input,
.email-form-card .uk-select,
.email-form-card .uk-textarea {
    border: 1px solid #ced4da;
    background: #fff;
    color: #495057;
}

.email-form-card .uk-input:focus,
.email-form-card .uk-select:focus,
.email-form-card .uk-textarea:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.uk-card-primary .uk-radio,
.uk-card-primary .uk-checkbox {
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    width: auto !important;
    height: auto !important;
}

.uk-card-primary .uk-input,
.uk-card-primary .uk-select,
.uk-card-primary .uk-textarea {
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}

/* User tags styling for email form */
.user-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
    min-height: 40px;
    padding: 8px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #fff;
}

.user-tag {
    display: inline-flex;
    align-items: center;
    background: #1e87f0;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.user-tag .remove-tag {
    margin-left: 5px;
    cursor: pointer;
    font-weight: bold;
}

.user-select {
    width: 100%;
    margin-bottom: 10px;
}

/* Quill editor styles */
.ql-editor {
    min-height: 200px;
}

.ql-container {
    font-size: 14px;
}

.email-history {
    max-height: none;
    overflow-y: visible;
}

/* Large Badge */
.uk-badge-large {
    font-size: 1rem !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    height: auto !important;
    line-height: 1.5 !important;
    text-transform: uppercase;
    font-weight: bold;
}

.uk-badge-success {
    background-color: #32d296 !important;
    color: white !important;
}

.uk-badge-warning {
    background-color: #faa05a !important;
    color: white !important;
}

.plan-pricing-alert {
    background: #ffe4e6;
    color: #9f1239;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.plan-pricing-status {
    margin-top: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #7f1d1d;
}

.plan-pricing-progress {
    margin-top: 10px;
    height: 10px;
    background: #fecdd3;
    border-radius: 999px;
    overflow: hidden;
}

.plan-pricing-progress__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #fb7185, #fda4af);
    transition: width 80ms linear;
}

.plan-pricing-circle {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.plan-pricing-circle__svg {
    width: 78px;
    height: 78px;
    filter: drop-shadow(0 2px 2px rgba(127, 29, 29, 0.12));
}

.plan-pricing-circle__track {
    stroke: #fecdd3;
    stroke-width: 10;
    fill: none;
}

.plan-pricing-circle__bar {
    stroke: #fb7185;
    stroke-width: 10;
    fill: none;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.plan-pricing-circle__text {
    fill: #9f1239;
    font-size: 12px;
    font-weight: 900;
    dominant-baseline: middle;
    text-anchor: middle;
}

.weather-card {
    width: 100%;
    height: 100%;
    min-height: 260px;
    position: relative;
    padding: 22px;
    background: radial-gradient(178.94% 106.41% at 26.42% 106.41%, #FFF7B1 0%, rgba(255, 255, 255, 0) 71.88%), #FFFFFF;
    box-shadow: 0px 155px 62px rgba(0, 0, 0, 0.01), 0px 87px 52px rgba(0, 0, 0, 0.05), 0px 39px 39px rgba(0, 0, 0, 0.09), 0px 10px 21px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    transition: background 220ms ease-in-out;
    cursor: default;
    overflow: hidden;
}

.weather-card__loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 40;
}

.weather-card__loader-inner {
    position: relative;
    width: 200px;
    height: 200px;
}

.weather-card__loader .snurra {
    filter: url(#weather_gegga);
}

.weather-card__loader .halvan {
    animation: Snurra1 10s infinite linear;
    stroke-dasharray: 180 800;
    fill: none;
    stroke: url(#weather_gradient);
    stroke-width: 23;
    stroke-linecap: round;
}

.weather-card__loader .strecken {
    animation: Snurra1 3s infinite linear;
    stroke-dasharray: 26 54;
    fill: none;
    stroke: url(#weather_gradient);
    stroke-width: 23;
    stroke-linecap: round;
}

.weather-card__loader .skugga {
    filter: blur(5px);
    opacity: 0.3;
    position: absolute;
    transform: translate(3px, 3px);
}

.weather-card--loading .weather-card__loader {
    display: flex;
}

.weather-card--loading .weather-card__icon,
.weather-card--loading .weather-card__header,
.weather-card--loading .weather-temp,
.weather-card--loading .weather-forecast {
    display: none !important;
}

.weather-moon {
    position: absolute;
    width: 120px;
    height: 120px;
    z-index: 10;
    pointer-events: none;
    display: none;
    filter: drop-shadow(0 10px 22px rgba(0,0,0,0.22));
    animation: weather-moon-float 4.8s infinite ease-in-out;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.weather-moon svg {
    width: 120px;
    height: 120px;
    display: block;
}

@keyframes weather-moon-float {
    0% { transform: translate(-50%, -50%) translateY(0px); opacity: 0.88; }
    50% { transform: translate(-50%, -50%) translateY(6px); opacity: 1; }
    100% { transform: translate(-50%, -50%) translateY(0px); opacity: 0.88; }
}

.weather-card--night .weather-moon {
    display: inline;
}

.weather-card--night .weather-sun,
.weather-card--night .weather-sunshine {
    display: none;
}

.weather-card-shell {
    position: relative;
    height: 100%;
}

.weather-card-shell .weather-action {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    color: rgba(17, 24, 39, 0.90) !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 18px rgba(0,0,0,0.14);
    backdrop-filter: blur(6px);
}

.weather-card-shell .weather-action:hover {
    background: rgba(255, 255, 255, 0.9);
}

.weather-card--night ~ .uk-position-absolute .weather-action,
.weather-card-shell .weather-card.weather-card--night + .uk-position-absolute .weather-action {
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
}



.weather-card__icon {
    width: 560px;
    height: 560px;
    position: absolute;
    right: -150px;
    top: -145px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1.5);
}

.weather-card--clear {
    background: radial-gradient(170% 120% at 26% 110%, rgba(255, 247, 177, 0.95) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(254, 243, 199, 0.95) 60%, rgba(255, 255, 255, 1) 100%);
}

.weather-card--partly {
    background: radial-gradient(170% 120% at 26% 110%, rgba(219, 234, 254, 0.95) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(224, 231, 255, 0.92) 55%, rgba(255, 255, 255, 1) 100%);
}

.weather-card--cloudy {
    background: radial-gradient(170% 120% at 26% 110%, rgba(226, 232, 240, 0.95) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(241, 245, 249, 0.95) 60%, rgba(255, 255, 255, 1) 100%);
}

.weather-card--fog {
    background: radial-gradient(170% 120% at 26% 110%, rgba(226, 232, 240, 0.95) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(135deg, rgba(248, 250, 252, 1) 0%, rgba(226, 232, 240, 0.88) 55%, rgba(248, 250, 252, 1) 100%);
}

.weather-card--drizzle {
    background: radial-gradient(170% 120% at 26% 110%, rgba(191, 219, 254, 0.95) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(219, 234, 254, 0.9) 60%, rgba(255, 255, 255, 1) 100%);
}

.weather-card--rain {
    background: radial-gradient(170% 120% at 26% 110%, rgba(147, 197, 253, 0.92) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(135deg, rgba(241, 245, 249, 1) 0%, rgba(219, 234, 254, 0.82) 60%, rgba(241, 245, 249, 1) 100%);
}

.weather-card--snow {
    background: radial-gradient(170% 120% at 26% 110%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(135deg, rgba(248, 250, 252, 1) 0%, rgba(226, 232, 240, 0.8) 60%, rgba(248, 250, 252, 1) 100%);
}

.weather-card--thunder {
    background: radial-gradient(170% 120% at 26% 110%, rgba(254, 215, 170, 0.92) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(226, 232, 240, 0.9) 55%, rgba(255, 255, 255, 1) 100%);
}

.weather-cloud {
    width: 380px;
}

.weather-cloud--front {
    padding-top: 45px;
    margin-left: 25px;
    display: inline;
    position: absolute;
    z-index: 11;
    animation: weather-clouds 6.5s infinite;
    animation-timing-function: ease-in-out;
}

.weather-cloud--back {
    margin-top: -30px;
    margin-left: 150px;
    z-index: 12;
    position: absolute;
    animation: weather-clouds 9.5s infinite;
    animation-timing-function: ease-in-out;
}

.weather-right-front {
    width: 45px;
    height: 45px;
    border-radius: 50% 50% 50% 0%;
    background-color: #4c9beb;
    display: inline-block;
    margin-left: -25px;
    z-index: 5;
}

.weather-left-front {
    width: 65px;
    height: 65px;
    border-radius: 50% 50% 0% 50%;
    background-color: #4c9beb;
    display: inline-block;
    z-index: 5;
}

.weather-right-back {
    width: 50px;
    height: 50px;
    border-radius: 50% 50% 50% 0%;
    background-color: #4c9beb;
    display: inline-block;
    margin-left: -20px;
    z-index: 5;
}

.weather-left-back {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 0% 50%;
    background-color: #4c9beb;
    display: inline-block;
    z-index: 5;
}

.weather-sun {
    width: 120px;
    height: 120px;
    background: linear-gradient(to right, #fcbb04, #fffc00);
    border-radius: 60px;
    display: inline;
    position: absolute;
    z-index: 10;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.weather-sunshine {
    width: 120px;
    height: 120px;
    background: linear-gradient(to right, #fcbb04, #fffc00);
    border-radius: 60px;
    display: inline;
    position: absolute;
    z-index: 9;
    animation: weather-sunshines 1.6s infinite;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes weather-sunshines {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

@keyframes weather-sun-drift {
    0% { transform: translate(-50%, -50%) translate(0px, 0px); }
    50% { transform: translate(-50%, -50%) translate(-10px, 6px); }
    100% { transform: translate(-50%, -50%) translate(0px, 0px); }
}

.weather-sun {
    animation: weather-sun-drift 4.6s infinite ease-in-out;
}

@keyframes weather-clouds {
    0% { transform: translateX(15px); }
    50% { transform: translateX(0px); }
    100% { transform: translateX(15px); }
}

.weather-card__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.weather-card__place {
    word-break: break-word;
    font-weight: 800;
    font-size: 30px;
    line-height: 135%;
    color: rgba(87, 77, 51, 0.78);
}

.weather-card__date {
    font-weight: 700;
    font-size: 28px;
    line-height: 135%;
    color: rgba(87, 77, 51, 0.38);
}

.weather-card__desc {
    font-weight: 700;
    font-size: 28px;
    line-height: 135%;
    color: rgba(87, 77, 51, 0.55);
}

.weather-temp {
    position: absolute;
    left: 22px;
    bottom: 12px;
    font-weight: 800;
    font-size: 84px;
    line-height: 77px;
    color: rgba(87, 77, 51, 1);
    z-index: 2;
}

.weather-card--expanded {
    padding-bottom: 92px;
    min-height: 390px;
}

.weather-card--expanded .weather-temp {
    bottom: 138px;
    font-size: 104px;
    line-height: 1;
}

.weather-card--night {
    background: radial-gradient(120% 110% at 26% 110%, rgba(30, 58, 138, 0.55) 0%, rgba(255, 255, 255, 0) 62%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.92) 55%, rgba(30, 41, 59, 0.88) 100%);
}

.weather-card--night .weather-card__place {
    color: rgba(226, 232, 240, 0.92);
}

.weather-card--night .weather-card__date,
.weather-card--night .weather-card__desc {
    color: rgba(226, 232, 240, 0.55);
}

.weather-card--night .weather-temp {
    color: rgba(226, 232, 240, 0.95);
}

.weather-card--night .weather-left-front,
.weather-card--night .weather-right-front,
.weather-card--night .weather-left-back,
.weather-card--night .weather-right-back {
    background-color: rgba(96, 165, 250, 0.75);
}

.weather-card--night .weather-sun,
.weather-card--night .weather-sunshine {
    opacity: 0.55;
    filter: saturate(0.75);
}

.weather-card--night .weather-forecast__day {
    background: rgba(255,255,255,0.08);
}

.weather-card--night .weather-forecast__dow {
    color: rgba(226, 232, 240, 0.65);
}

.weather-card--night .weather-forecast__temp {
    color: rgba(226, 232, 240, 0.90);
}

.weather-card--night .weather-forecast__date {
    color: rgba(226, 232, 240, 0.50);
}

.weather-forecast {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    z-index: 3;
}

.weather-forecast__day {
    background: rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 10px 10px;
    display: grid;
    grid-template-rows: auto auto 34px auto;
    align-items: center;
    justify-items: center;
}

.weather-forecast__dow {
    font-weight: 800;
    font-size: 12px;
    color: rgba(87, 77, 51, 0.55);
    text-transform: lowercase;
}

.weather-forecast__date {
    font-weight: 800;
    font-size: 11px;
    color: rgba(87, 77, 51, 0.45);
    margin-top: -2px;
}

.weather-forecast__temp {
    font-weight: 800;
    font-size: 12px;
    color: rgba(87, 77, 51, 0.82);
    white-space: nowrap;
}

.weather-forecast__icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(76, 155, 235, 0.18);
    position: relative;
}

.weather-forecast__icon::before,
.weather-forecast__icon::after {
    content: "";
    position: absolute;
    inset: 0;
}

.weather-forecast__icon--clear::before {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 35%, #fffbcc 0%, #fbbf24 55%, #f59e0b 100%);
    top: 6px;
    left: 6px;
}

.weather-forecast__icon--partly::before {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 35%, #fffbcc 0%, #fbbf24 55%, #f59e0b 100%);
    top: 5px;
    left: 4px;
}

.weather-forecast__icon--partly::after {
    width: 22px;
    height: 14px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.9);
    left: 9px;
    top: 16px;
    box-shadow: -8px -4px 0 0 rgba(148, 163, 184, 0.9);
}

.weather-forecast__icon--cloudy::before {
    width: 24px;
    height: 14px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.92);
    left: 6px;
    top: 14px;
    box-shadow: -8px -4px 0 0 rgba(148, 163, 184, 0.92), 6px -6px 0 0 rgba(148, 163, 184, 0.75);
}

.weather-forecast__icon--rain::before,
.weather-forecast__icon--drizzle::before {
    width: 24px;
    height: 14px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.92);
    left: 6px;
    top: 12px;
    box-shadow: -8px -4px 0 0 rgba(148, 163, 184, 0.92);
}

.weather-forecast__icon--rain::after,
.weather-forecast__icon--drizzle::after {
    width: 3px;
    height: 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.9);
    left: 12px;
    top: 22px;
    box-shadow: 7px 0 0 rgba(59, 130, 246, 0.9), 14px 0 0 rgba(59, 130, 246, 0.9);
    opacity: 0.95;
}

.weather-forecast__icon--drizzle::after {
    height: 7px;
    opacity: 0.7;
}

.weather-forecast__icon--snow::before {
    width: 24px;
    height: 14px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.92);
    left: 6px;
    top: 12px;
    box-shadow: -8px -4px 0 0 rgba(148, 163, 184, 0.92);
}

.weather-forecast__icon--snow::after {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.95);
    left: 12px;
    top: 24px;
    box-shadow: 7px 0 0 rgba(255,255,255,0.95), 14px 0 0 rgba(255,255,255,0.95);
}

.weather-forecast__icon--fog::before {
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.85);
    left: 5px;
    top: 14px;
    box-shadow: 0 6px 0 rgba(148, 163, 184, 0.65), 0 12px 0 rgba(148, 163, 184, 0.45);
}

.weather-forecast__icon--thunder::before {
    width: 24px;
    height: 14px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.92);
    left: 6px;
    top: 12px;
    box-shadow: -8px -4px 0 0 rgba(148, 163, 184, 0.92);
}

.weather-forecast__icon--thunder::after {
    width: 12px;
    height: 18px;
    left: 14px;
    top: 18px;
    background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%);
    clip-path: polygon(45% 0, 100% 0, 58% 52%, 86% 52%, 30% 100%, 44% 62%, 18% 62%);
}

.weather-forecast__day[data-state="clear"] .weather-forecast__icon {
    background: radial-gradient(circle at 35% 35%, #ffed75 0%, #fbbf24 55%, rgba(251,191,36,0.0) 72%);
}

.weather-forecast__day[data-state="partly"] .weather-forecast__icon {
    background: radial-gradient(circle at 35% 35%, #ffed75 0%, #fbbf24 50%, rgba(76,155,235,0.22) 52%, rgba(76,155,235,0.22) 100%);
}

.weather-forecast__day[data-state="cloudy"] .weather-forecast__icon {
    background: rgba(76,155,235,0.28);
}

.weather-forecast__day[data-state="fog"] .weather-forecast__icon {
    background: rgba(148,163,184,0.35);
}

.weather-forecast__day[data-state="rain"] .weather-forecast__icon,
.weather-forecast__day[data-state="drizzle"] .weather-forecast__icon {
    background: rgba(59,130,246,0.28);
}

.weather-forecast__day[data-state="snow"] .weather-forecast__icon {
    background: rgba(255,255,255,0.55);
}

.weather-forecast__day[data-state="thunder"] .weather-forecast__icon {
    background: rgba(245,158,11,0.28);
}

.weather-rain,
.weather-snow,
.weather-fog,
.weather-thunder {
    position: absolute;
    inset: 0;
    z-index: 13;
    display: none;
}

.weather-drop {
    position: absolute;
    width: 6px;
    height: 20px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.92);
    top: 52%;
    left: 30%;
    animation: weather-rain 0.95s infinite linear;
}

.weather-drop:nth-child(2) { left: 38%; animation-delay: 0.12s; }
.weather-drop:nth-child(3) { left: 46%; animation-delay: 0.24s; }
.weather-drop:nth-child(4) { left: 54%; animation-delay: 0.36s; }
.weather-drop:nth-child(5) { left: 62%; animation-delay: 0.48s; }
.weather-drop:nth-child(6) { left: 70%; animation-delay: 0.60s; }

@keyframes weather-rain {
    0% { transform: translateY(-12px); opacity: 0.95; }
    100% { transform: translateY(110px); opacity: 0; }
}

.weather-flake {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.95);
    top: 50%;
    left: 34%;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.08));
    animation: weather-snow 1.55s infinite linear;
}

.weather-flake:nth-child(2) { left: 44%; animation-delay: 0.2s; opacity: 0.85; }
.weather-flake:nth-child(3) { left: 54%; animation-delay: 0.4s; opacity: 0.80; }
.weather-flake:nth-child(4) { left: 64%; animation-delay: 0.6s; opacity: 0.90; }
.weather-flake:nth-child(5) { left: 74%; animation-delay: 0.8s; opacity: 0.75; }

@keyframes weather-snow {
    0% { transform: translateY(-10px) translateX(0) rotate(0deg); opacity: 0.95; }
    100% { transform: translateY(130px) translateX(-18px) rotate(180deg); opacity: 0; }
}

@keyframes weather-thunder-glow {
    0%, 70%, 100% { filter: drop-shadow(0 0 0 rgba(253, 224, 71, 0)); }
    72%, 78% { filter: drop-shadow(0 0 18px rgba(253, 224, 71, 0.65)) drop-shadow(0 0 32px rgba(245, 158, 11, 0.35)); }
}

.weather-card--thunder .weather-thunder::before {
    animation: weather-flash 1.8s infinite, weather-thunder-glow 1.8s infinite;
}

.weather-fogline {
    position: absolute;
    left: 18%;
    right: 18%;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.55);
    top: 56%;
    animation: weather-fog 2.9s infinite ease-in-out;
}

.weather-fogline:nth-child(2) { top: 64%; opacity: 0.45; animation-delay: 0.25s; }
.weather-fogline:nth-child(3) { top: 72%; opacity: 0.35; animation-delay: 0.5s; }

@keyframes weather-fog {
    0% { transform: translateX(-10px); opacity: 0.28; }
    50% { transform: translateX(10px); opacity: 0.55; }
    100% { transform: translateX(-10px); opacity: 0.28; }
}

.weather-fog::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(226, 232, 240, 0) 40%, rgba(226, 232, 240, 0.18) 70%, rgba(226, 232, 240, 0) 100%);
    opacity: 0.75;
    animation: weather-mist 4.2s infinite ease-in-out;
}

@keyframes weather-mist {
    0% { transform: translateX(-18px); }
    50% { transform: translateX(18px); }
    100% { transform: translateX(-18px); }
}

.weather-thunder::before {
    content: "";
    position: absolute;
    width: 26px;
    height: 52px;
    left: 140px;
    top: 120px;
    background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%);
    clip-path: polygon(45% 0, 100% 0, 58% 52%, 86% 52%, 30% 100%, 44% 62%, 18% 62%);
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.15));
    animation: weather-flash 1.8s infinite;
}

@keyframes weather-flash {
    0%, 70%, 100% { opacity: 0; }
    72%, 78% { opacity: 1; }
}

.weather-card--clear .weather-cloud,
.weather-card--clear .weather-rain,
.weather-card--clear .weather-snow,
.weather-card--clear .weather-fog,
.weather-card--clear .weather-thunder { display: none; }

.weather-card--partly .weather-rain,
.weather-card--partly .weather-snow,
.weather-card--partly .weather-fog,
.weather-card--partly .weather-thunder { display: none; }

.weather-card--cloudy .weather-sun {
    opacity: 0.58;
    filter: saturate(0.8);
}

.weather-card--cloudy .weather-sunshine {
    opacity: 0.35;
}

.weather-card--fog .weather-fog { display: block; }
.weather-card--fog .weather-sun,
.weather-card--fog .weather-sunshine { display: none; }

.weather-card--rain .weather-rain { display: block; }

.weather-card--drizzle .weather-rain { display: block; }
.weather-card--drizzle .weather-drop { width: 4px; height: 10px; opacity: 0.75; }

.weather-card--snow .weather-snow { display: block; }
.weather-card--snow .weather-sun,
.weather-card--snow .weather-sunshine { display: none; }

.weather-card--thunder .weather-rain,
.weather-card--thunder .weather-thunder { display: block; }
.weather-card--thunder .weather-sun,
.weather-card--thunder .weather-sunshine { display: none; }

.weather-card--partly .weather-cloud {
    opacity: 0.96;
}

.weather-card--cloudy .weather-cloud {
    opacity: 1;
}

.weather-card--partly .weather-cloud--front {
    padding-top: 78px;
    margin-left: 86px;
}

.weather-card--cloudy .weather-cloud--front {
    padding-top: 88px;
    margin-left: 108px;
}

.weather-card--partly .weather-cloud--back {
    margin-left: 210px;
    margin-top: -18px;
}

.weather-card--cloudy .weather-cloud--back {
    margin-left: 230px;
    margin-top: -12px;
}

.weather-card--cloudy.weather-card--night .weather-moon {
    opacity: 0.82;
}

.weather-card--loading .weather-card__date { opacity: 0.6; }

.header-filter-input {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    backdrop-filter: blur(5px);
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.header-filter-input:focus {
    background-color: rgba(0, 0, 0, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.header-filter-input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.header-filter-btn {
    border-color: rgba(255,255,255,0.3) !important;
    background: rgba(255,255,255,0.1) !important;
    color: rgba(255,255,255,0.92) !important;
    backdrop-filter: blur(5px);
    border-radius: 8px;
}

.header-filter-btn:hover {
    background: rgba(255,255,255,0.16) !important;
}

.header-filter-btn-primary {
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.plan-price-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.plan-price-badge {
    display: inline-block;
    min-width: 200px;
    text-align: center;
    border-radius: 8px;
    padding: 14px 18px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.plan-price-badge--gbp {
    background: #dbeafe;
    color: #1e3a8a;
    font-size: 1.6rem;
    padding: 12px 18px;
}

.plan-price-badge--usdt {
    background: #d1fae5;
    color: #065f46;
    font-size: 1.6rem;
    padding: 12px 18px;
}

/* Calendar Card Styles */
.shine-effect {
    position: relative;
}
.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 5s infinite;
    pointer-events: none;
}
@keyframes shine {
    0% { left: -150%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

/* Custom Progress Bar */
.uk-progress.custom-progress::-webkit-progress-value {
    background-color: #ff9800; /* Fallback */
    background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    animation: progress-stripes 1s linear infinite;
}
.uk-progress.custom-progress::-moz-progress-bar {
    background-color: #ff9800;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    animation: progress-stripes 1s linear infinite;
}
.uk-progress.custom-progress {
    background-color: #f0f0f0;
    height: 25px;
    border-radius: 8px;
}
@keyframes progress-stripes {
    from { background-position: 1rem 0; }
    to { background-position: 0 0; }
}

/* Calendar 3D Tilt Effect */
.calendar-wrapper {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.calendar-page {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out; /* Smooth movement following cursor */
    will-change: transform;
}

/* Chat UI - flat layout */
.chat-card-ios {
    border-radius: 16px;
    background: #ffffff;
}

.chat-card-limit {
    max-height: 80vh;
    height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-messages-ios {
    position: relative;
    padding: 16px;
    background: #ffffff; /* Clean white background */
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.chat-messages-admin {
    max-height: 55vh;
}

.chat-message-row {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-end; /* Align avatar to bottom */
}

.chat-message-row.from-me {
    justify-content: flex-end;
    flex-direction: row; /* Avatar on right */
}

.chat-message-row.from-them {
    justify-content: flex-start;
    flex-direction: row; /* Avatar on left */
}

.chat-avatar-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #d1d5db;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #555;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chat-message-row.from-them .chat-avatar-icon {
    margin-right: 10px;
}

.chat-message-row.from-me .chat-avatar-icon {
    margin-left: 10px;
    order: 2; /* Ensure avatar is after bubble */
}

.chat-bubble-ios {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 20px;
    position: relative;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: #ffffff;
    word-wrap: break-word;
}

/* Green for them (Left) */
.chat-message-row.from-them .chat-bubble-ios {
    background: #4cd964; /* iOS Green */
    border-bottom-left-radius: 4px;
    margin-left: 5px; /* Space for tail */
}

/* Tail for Them */
.chat-message-row.from-them .chat-bubble-ios::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: -8px;
    width: 20px;
    height: 20px;
    background: #4cd964;
    border-bottom-right-radius: 16px;
    z-index: -1;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

/* Blue for me (Right) */
.chat-message-row.from-me .chat-bubble-ios {
    background: #007aff; /* iOS Blue */
    border-bottom-right-radius: 4px;
    margin-right: 5px; /* Space for tail */
    order: 1;
}

/* Tail for Me */
.chat-message-row.from-me .chat-bubble-ios::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: -8px;
    width: 20px;
    height: 20px;
    background: #007aff;
    border-bottom-left-radius: 16px;
    z-index: -1;
    transform: scaleX(-1); /* Mirror the shape */
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.chat-meta {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
    color: rgba(255,255,255,0.9);
}

.chat-bubble-actions {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    justify-content: flex-end;
}

.chat-bubble-actions .uk-icon-button {
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
}

.chat-bubble-actions .uk-icon-button:hover {
    background: rgba(255,255,255,0.4);
}

.chat-bubble-content {
    word-wrap: break-word;
    word-break: break-word;
}

.chat-sender-name {
    font-size: 11px;
    margin-bottom: 2px;
    font-weight: 600;
    opacity: 0.9;
    color: rgba(255,255,255,0.95);
}

.chat-message-row.from-me .chat-sender-name {
    display: none; /* Don't show my own name usually */
}

/* Attachment styling adaptation */
.chat-attachment img {
    border-radius: 8px;
    margin-top: 5px;
    border: 2px solid rgba(255,255,255,0.3);
}

.chat-file-link {
    color: white !important;
    text-decoration: underline;
    font-weight: 500;
}

.chat-header-link {
    position: relative;
    overflow: visible !important; /* Fix for invisible badge */
}

/* Custom underline animation for chat link to avoid overflow:hidden issue */
.chat-header-link::before {
    left: 0 !important;
    width: 0 !important;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    transition: width 0.3s ease !important;
}

.chat-header-link:hover::before {
    width: 100% !important;
}

.chat-badge {
    position: absolute;
    top: 2px;
    right: -10px;
    background: #ef4444;
    color: #ffffff;
    border-radius: 999px;
    padding: 0 6px;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    z-index: 10;
}

.chat-floating-button {
    position: fixed;
    right: 18px;
    bottom: 24px;
    z-index: 980;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.25);
}

.chat-floating-button span[uk-icon] {
    color: #ffffff;
}

.chat-badge-floating {
    position: absolute;
    top: -4px;
    right: -4px;
}

.emoji-picker {
    position: absolute;
    bottom: 110%; /* Slightly above */
    right: 0;
    width: 620px;
    max-height: 500px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 1000;
}

.emoji-picker[hidden] {
    display: none !important;
}

.emoji-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 32px;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.chat-attachment-preview {
    margin-top: 6px;
    font-size: 12px;
    color: #4b5563;
    display: none;
    align-items: center;
    gap: 8px;
}

.chat-attachment-preview img {
    max-height: 40px;
    border-radius: 6px;
}

.chat-attachment-preview-remove {
    cursor: pointer;
    color: #ef4444;
}

.chat-typing-indicator {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-typing-indicator .dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #9ca3af;
    animation: chat-typing-bounce 1.2s infinite ease-in-out;
}

.chat-typing-indicator .dot:nth-child(2) {
    animation-delay: 0.15s;
}

.chat-typing-indicator .dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes chat-typing-bounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-format-btn {
    border-radius: 999px;
}

.chat-grid {
    height: 100%;
    flex: 1 1 auto;
    min-height: 0;
}

.chat-left-column,
.chat-right-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.chat-contacts-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.chat-contact-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.chat-contact-item:hover {
    background: #f3f4f6;
}

.chat-contact-item.active {
    background: #2563eb;
    color: #ffffff;
}

.chat-contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: 600;
    color: #1f2937;
    background-size: cover;
    background-position: center;
    position: relative;
}

.chat-contact-content {
    flex: 1;
}

.chat-contact-name {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-contact-meta {
    font-size: 12px;
    color: #6b7280;
}

.chat-contact-unread {
    background: #ef4444;
    color: #ffffff;
    border-radius: 999px;
    padding: 0 6px;
    font-size: 11px;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-header-row {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

.chat-user-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.chat-form-row {
    flex: 0 0 auto;
}

.chat-header-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: 600;
    color: #1f2937;
    background-size: cover;
    background-position: center;
}

.chat-header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.chat-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ef4444;
}

.chat-status-dot.online {
    background: #22c55e;
}

.chat-status-text {
    font-size: 12px;
    color: #6b7280;
}

/* Pastel Badge for Message Count (Index.php) */
.message-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fce38a 0%, #f38181 100%); /* Pastel Orange/Red */
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(243, 129, 129, 0.4);
    margin-bottom: 10px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
    line-height: 1;
}

/* Custom Toast Notifications - Moved to toast.css */
