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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f7fa;
    color: #2c3e50;
    line-height: 1.6;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #2c3e50;
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    background: #1a252f;
    border-bottom: 1px solid #34495e;
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: #34495e;
    border-left-color: #3498db;
}

.nav-link.active {
    background: #34495e;
    border-left-color: #3498db;
    font-weight: 500;
}

.main-content {
    flex: 1;
    margin-left: 260px;
}

.topbar {
    background: white;
    padding: 15px 30px;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left .page-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: #f5f7fa;
    border-radius: 6px;
}

.wallet-label {
    font-size: 13px;
    color: #7f8c8d;
}

.wallet-amount {
    font-weight: 600;
    color: #27ae60;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.user-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.username {
    font-weight: 500;
}

.logout-btn {
    padding: 6px 12px;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.logout-btn:hover {
    background: #c0392b;
}

.content {
    padding: 30px;
}

.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.section-header {
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-header p {
    color: #7f8c8d;
    font-size: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 32px;
}

.stat-label {
    font-size: 13px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 5px;
}

.section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.empty-state p {
    font-size: 16px;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.auth-card h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2c3e50;
    text-align: center;
}

.auth-card h2 {
    font-size: 18px;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #7f8c8d;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: #7f8c8d;
}

.auth-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.earnings-breakdown {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.earnings-breakdown h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.earnings-grid {
    display: grid;
    gap: 12px;
}

.earning-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: #f5f7fa;
    border-radius: 6px;
}

.earning-label {
    color: #7f8c8d;
}

.earning-value {
    font-weight: 600;
    color: #27ae60;
}

.news-list {
    display: grid;
    gap: 15px;
}

.news-item {
    padding: 20px;
    background: #f5f7fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.news-item.pinned {
    background: #fff5e6;
    border-left-color: #f39c12;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.news-header h4 {
    font-size: 16px;
    font-weight: 600;
}

.news-badge {
    padding: 4px 10px;
    background: #f39c12;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.activity-list {
    display: grid;
    gap: 10px;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f5f7fa;
    border-radius: 6px;
}

.activity-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-amount {
    padding: 4px 8px;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ad-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ad-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.ad-reward {
    padding: 6px 12px;
    background: #27ae60;
    color: white;
    border-radius: 6px;
    font-weight: 600;
}

.ad-description {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.ad-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ad-duration {
    font-size: 13px;
    color: #7f8c8d;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #7f8c8d;
}

.modal-body {
    padding: 20px;
}

.ad-player {
    text-align: center;
    padding: 40px 20px;
}

.countdown-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.bonus-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.bonus-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.bonus-amount {
    font-size: 32px;
    font-weight: 700;
    color: #27ae60;
}

.checklist {
    margin-bottom: 25px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f5f7fa;
    border-radius: 6px;
    margin-bottom: 10px;
}

.checklist-item.completed {
    background: #d4edda;
}

.checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #3498db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checklist-item.completed .checkbox {
    background: #27ae60;
    border-color: #27ae60;
}

.checkmark {
    color: white;
    font-weight: 700;
}

.info-box {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.info-box h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.info-box ul {
    margin-left: 20px;
}

.tasks-list, .news-card {
    display: grid;
    gap: 15px;
}

.task-item, .task-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    border-left: 4px solid #3498db;
}

.task-item.status-pending {
    border-left-color: #f39c12;
}

.task-item.status-approved {
    border-left-color: #27ae60;
}

.task-item.status-rejected {
    border-left-color: #e74c3c;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.task-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pending {
    background: #fff5e6;
    color: #f39c12;
}

.badge-approved {
    background: #d4edda;
    color: #155724;
}

.badge-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff5e6;
    color: #f39c12;
}

.status-approved, .status-active {
    background: #d4edda;
    color: #155724;
}

.status-rejected, .status-banned, .status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-open {
    background: #e3f2fd;
    color: #1565c0;
}

.status-closed {
    background: #f5f5f5;
    color: #757575;
}

.status-paid {
    background: #d1f2eb;
    color: #0e6655;
}

.task-type, .task-details {
    margin-bottom: 10px;
    color: #7f8c8d;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.task-reward {
    color: #27ae60;
    font-weight: 600;
}

.offerwalls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.offerwall-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.offerwall-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.offerwall-provider {
    color: #7f8c8d;
    font-size: 14px;
}

.offerwall-body {
    margin-top: 15px;
}

.offerwall-mode {
    margin-bottom: 15px;
}

.leaderboard-table table,
.tickets-table table,
.requests-table table,
.users-table table,
.ads-table table,
.offerwalls-table table,
.methods-table table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td,
.tickets-table th,
.tickets-table td,
.requests-table th,
.requests-table td,
.users-table th,
.users-table td,
.ads-table th,
.ads-table td,
.offerwalls-table th,
.offerwalls-table td,
.methods-table th,
.methods-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e1e8ed;
}

.leaderboard-table th,
.tickets-table th,
.requests-table th,
.users-table th,
.ads-table th,
.offerwalls-table th,
.methods-table th {
    background: #f5f7fa;
    font-weight: 600;
    color: #2c3e50;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.leaderboard-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.leaderboard-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.rank-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    color: white;
}

.rank-badge.gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
}

.rank-badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #000;
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #b87333);
}

.top-3-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.top-earner-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.top-earner-card.rank-1 {
    background: linear-gradient(135deg, #fff9e6, #fffbf0);
    border: 2px solid #ffd700;
}

.top-earner-card.rank-2 {
    background: linear-gradient(135deg, #f5f5f5, #fafafa);
    border: 2px solid #c0c0c0;
}

.top-earner-card.rank-3 {
    background: linear-gradient(135deg, #fff0e6, #fff5ed);
    border: 2px solid #cd7f32;
}

.rank-badge-large {
    margin-bottom: 15px;
}

.badge-gold, .badge-silver, .badge-bronze {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
}

.badge-gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
}

.badge-silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #000;
}

.badge-bronze {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: #fff;
}

.earner-avatar-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
}

.earner-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3498db;
}

.avatar-placeholder-large {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 32px;
    border: 3px solid #3498db;
}

.earner-username {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.earner-amount {
    font-size: 24px;
    font-weight: 700;
    color: #27ae60;
}

.referral-link-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.referral-link-container {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.referral-link-container input {
    flex: 1;
}

.referral-code {
    text-align: center;
    color: #7f8c8d;
}

.info-steps {
    display: grid;
    gap: 20px;
}

.info-step {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.wallet-summary {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-around;
}

.summary-item {
    text-align: center;
}

.summary-item strong {
    display: block;
    font-size: 20px;
    color: #27ae60;
    margin-top: 5px;
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.account-card {
    padding: 15px;
    background: #f5f7fa;
    border-radius: 6px;
    border: 2px solid transparent;
}

.account-card.default {
    border-color: #3498db;
    background: #e3f2fd;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.badge-default {
    padding: 4px 8px;
    background: #3498db;
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.account-method {
    color: #7f8c8d;
    font-size: 14px;
}

.ticket-thread {
    margin-bottom: 20px;
}

.ticket-message {
    padding: 15px;
    background: #f5f7fa;
    border-radius: 6px;
    margin-bottom: 15px;
}

.ticket-message.original {
    background: white;
    border: 1px solid #e1e8ed;
}

.ticket-message.admin {
    background: #e3f2fd;
    border-left: 4px solid #3498db;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.message-body {
    color: #2c3e50;
}

.profile-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.profile-avatar-section {
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    margin: 0 auto 15px;
}

.profile-info {
    display: grid;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: #f5f7fa;
    border-radius: 6px;
}

.text-success {
    color: #27ae60;
}

.text-danger {
    color: #e74c3c;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filters {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-form input[type="text"] {
    flex: 1;
    min-width: 200px;
}

.quick-actions {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.action-btn {
    padding: 15px;
    background: #3498db;
    color: white;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.back-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr auto;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }

    .main-content {
        margin-left: 0;
    }

    .topbar {
        flex-direction: column;
        gap: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .field-row {
        grid-template-columns: 1fr;
    }
}

/* Layout fix */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: #243447; color: #fff; padding: 18px; }
.sidebar a { color: #fff; text-decoration: none; display: block; padding: 10px 10px; border-radius: 8px; margin: 6px 0; }
.sidebar a:hover { background: rgba(255,255,255,0.12); }
.brand { font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.content { flex: 1; padding: 20px; background: #f5f6fa; }
.topbar { display: flex; gap: 16px; justify-content: space-between; align-items: center; background: #fff; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.page-content { margin-top: 10px; }

/* ===== Offerwall Layout Patch (forces correct layout) ===== */
html, body { height: 100%; }
body { margin: 0; background: #f4f6fb; }

.ow-layout{
  display:flex;
  min-height:100vh;
  width:100%;
}

.ow-sidebar{
  width:260px;
  flex:0 0 260px;
  background:#243447;
  color:#fff;
  padding:18px 14px;
  box-sizing:border-box;
}

.ow-brand{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 10px 16px;
  border-bottom:1px solid rgba(255,255,255,0.12);
  margin-bottom:14px;
}

.ow-logo{ font-size:22px; }
.ow-title{ font-weight:800; font-size:16px; line-height:1.1; }
.ow-sub{ opacity:.75; font-size:12px; margin-top:2px; }

.ow-nav{ display:flex; flex-direction:column; gap:6px; }
.ow-nav-title{
  margin-top:14px;
  font-size:12px;
  opacity:.7;
  padding:8px 10px 4px;
}

.ow-link{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  color:#fff !important;
  text-decoration:none !important;
  font-weight:600;
  font-size:14px;
  background:transparent;
}

.ow-link:hover{
  background:rgba(255,255,255,0.12);
}

.ow-link-danger{
  margin-top:6px;
  background:rgba(255,70,70,0.18);
}

.ow-main{
  flex:1;
  min-width:0;
  padding:18px;
  box-sizing:border-box;
}

.ow-topbar{
  background:#fff;
  border:1px solid rgba(0,0,0,0.06);
  border-radius:14px;
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.ow-balances{ display:flex; gap:10px; flex-wrap:wrap; }
.ow-pill{
  background:#f3f6ff;
  border:1px solid rgba(0,0,0,0.06);
  padding:8px 10px;
  border-radius:12px;
  font-size:13px;
}

.ow-user-badge{
  background:#243447;
  color:#fff;
  padding:8px 10px;
  border-radius:999px;
  font-size:13px;
}

.ow-content{
  margin-top:14px;
}

/* Mobile: sidebar becomes top */
@media (max-width: 900px){
  .ow-layout{ flex-direction:column; }
  .ow-sidebar{ width:100%; flex:0 0 auto; }
}

