/* User Dropdown */
.user-dropdown-container {
    position: relative;
    cursor: pointer;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    width: max-content;
    min-width: 180px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-dropdown-container:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px;
    background: #F8FAFC;
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.dropdown-item {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #EF4444;
    font-weight: 500;
    transition: background 0.2s;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.dropdown-item:hover {
    background: #FEF2F2;
}

/* Channel Config Cards */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.config-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.config-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-blue);
}

.config-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-blue);
    opacity: 0.8;
}

.config-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.config-icon {
    width: 48px;
    height: 48px;
    background: #EFF6FF;
    color: var(--accent-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.config-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 4px;
}

.config-info p {
    font-size: 13px;
    color: #64748B;
    background: #F1F5F9;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.config-actions {
    margin-top: auto;
}

.btn-config-download {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    background: #F8FAFC;
    color: #475569;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-config-download:hover {
    border-color: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

/* Promotion Link Styles */
.promotion-box {
    background: #F8FAFC;
    border: 2px dashed #E2E8F0;
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s;
}

.promotion-box:hover {
    border-color: var(--accent-blue);
    background: #F0F9FF;
}

.promo-url-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin: 20px auto;
    max-width: 600px;
    box-shadow: var(--shadow-sm);
}

.promo-url {
    flex: 1;
    font-family: monospace;
    font-size: 16px;
    color: var(--accent-blue);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.btn-copy {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
    white-space: nowrap;
}

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

.rules-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.rules-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.rules-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    color: #475569;
    line-height: 1.6;
}

.rules-list i {
    color: #10B981;
    margin-top: 4px;
}

.logo-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-right: 12px;
}
