/* Authorization Popup Styles */
.cc-auth-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.cc-auth-modal {
    background: #fff;
    width: calc(100% - 32px);
    max-width: 450px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    font-family: var(--font-ui, sans-serif);
}

.cc-auth-close {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border: 1px solid;
    border-radius: 50%;
    background-color: #fff;
}

.cc-auth-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.cc-auth-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    background: #f9f9f9;
    color: #666;
    transition: all 0.3s;
}

.cc-auth-tab.active {
    background: #fff;
    color: #1a1a1a;
    border-bottom: 2px solid #000;
}

.cc-auth-content {
    padding: 30px;
}

.cc-auth-form-wrapper {
    display: none;
}

.cc-auth-form-wrapper.active {
    display: block;
}

.cc-auth-form p {
    margin-bottom: 15px;
    margin-top: 0;
}

form#cc-lostpassword-form h3 {
    margin-top: 0;
}

.cc-auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
    color: var(--ink);
}

.cc-auth-form label:after {
    content: '*';
    color: #d92929;
    margin-left: 4px;
}

.cc-auth-form input[type="text"],
.cc-auth-form input[type="email"],
.cc-auth-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.cc-auth-button {
    width: 100%;
    padding: 12px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.cc-auth-button:hover {
    background: var(--ink);
}

.cc-auth-message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.cc-auth-message.success {
    background: #d4edda;
    color: #155724;
}

.cc-auth-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* User Dropdown in Header */
.cc-user-dropdown {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0;
    flex-direction: column;
}

.cc-user-dropdown:hover .cc-user-name {
    color: var(--ink);
}

.cc-user-avatar {
    display: flex;
}

.cc-user-avatar img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.cc-user-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.cc-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    z-index: 1000;
    border: 1px solid #eee;
}

.cc-dropdown-menu.show {
    display: block;
}

.cc-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--ink);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 14px;
}

.cc-dropdown-menu a:hover {
    /* background: #f5f5f5; */
    color: var(--ink);
}

.cc-dropdown-divider {
    height: 1px;
    background: #eee;
}